C# 클래스 OpenCvSharp.Blob.CvBlob

파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
Angle ( ) : double

Calculates angle orientation of a blob. This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle)

CalcCentroid ( ) : Point2d

Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid)

Clone ( ) : CvBlob

CvBlob ( ) : System

Constructor

SaveImage ( string fileName, Mat img ) : void

Save the image of a blob to a file. The function uses an image (that can be the original pre-processed image or a processed one, or even the result of cvRenderBlobs, for example) and a blob structure. Then the function saves a copy of the part of the image where the blob is.

SetMoments ( ) : void

Set central/hu moments and centroid value from moment values (M**)

비공개 메소드들

메소드 설명
CvBlob ( int label, int x, int y ) : System

메소드 상세

Angle() 공개 메소드

Calculates angle orientation of a blob. This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle)
public Angle ( ) : double
리턴 double

CalcCentroid() 공개 메소드

Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid)
public CalcCentroid ( ) : Point2d
리턴 Point2d

Clone() 공개 메소드

public Clone ( ) : CvBlob
리턴 CvBlob

CvBlob() 공개 메소드

Constructor
public CvBlob ( ) : System
리턴 System

SaveImage() 공개 메소드

Save the image of a blob to a file. The function uses an image (that can be the original pre-processed image or a processed one, or even the result of cvRenderBlobs, for example) and a blob structure. Then the function saves a copy of the part of the image where the blob is.
public SaveImage ( string fileName, Mat img ) : void
fileName string Name of the file.
img Mat Image.
리턴 void

SetMoments() 공개 메소드

Set central/hu moments and centroid value from moment values (M**)
public SetMoments ( ) : void
리턴 void