C# Класс OpenCvSharp.Blob.CvBlob

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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