C# Class OpenCvSharp.Blob.CvBlob

Afficher le fichier Open project: shimat/opencvsharp Class Usage Examples

Méthodes publiques

Méthode Description
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**)

Private Methods

Méthode Description
CvBlob ( int label, int x, int y ) : System

Method Details

Angle() public méthode

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
Résultat double

CalcCentroid() public méthode

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

Clone() public méthode

public Clone ( ) : CvBlob
Résultat CvBlob

CvBlob() public méthode

Constructor
public CvBlob ( ) : System
Résultat System

SaveImage() public méthode

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.
Résultat void

SetMoments() public méthode

Set central/hu moments and centroid value from moment values (M**)
public SetMoments ( ) : void
Résultat void