C# Class OpenCvSharp.ConnectedComponents

connected components that is returned from Cv2.ConnectedComponentsEx
Afficher le fichier Open project: shimat/opencvsharp

Méthodes publiques

Méthode Description
FilterBlobs ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, IEnumerable blobs ) : OpenCvSharp.Mat

Filter a image with the specified blob objects.

FilterByBlob ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, Blob blob ) : OpenCvSharp.Mat

Filter a image with the specified blob object.

FilterByLabel ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, int labelValue ) : OpenCvSharp.Mat

Filter a image with the specified label value.

FilterByLabels ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, IEnumerable labelValues ) : OpenCvSharp.Mat

Filter a image with the specified label values.

GetLargestBlob ( ) : Blob

Find the largest blob.

RenderBlobs ( OpenCvSharp.Mat img ) : void

Draws all blobs to the specified image.

Private Methods

Méthode Description
ConnectedComponents ( IList blobs, int labels, int labelCount ) : System

Constructor

GetLabelMask ( int label ) : OpenCvSharp.Mat

指定したラベル値のところのみを非0で残したマスク画像を返す

Method Details

FilterBlobs() public méthode

Filter a image with the specified blob objects.
public FilterBlobs ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, IEnumerable blobs ) : OpenCvSharp.Mat
src OpenCvSharp.Mat Source image.
dst OpenCvSharp.Mat Destination image.
blobs IEnumerable Blob values.
Résultat OpenCvSharp.Mat

FilterByBlob() public méthode

Filter a image with the specified blob object.
public FilterByBlob ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, Blob blob ) : OpenCvSharp.Mat
src OpenCvSharp.Mat Source image.
dst OpenCvSharp.Mat Destination image.
blob Blob Blob value.
Résultat OpenCvSharp.Mat

FilterByLabel() public méthode

Filter a image with the specified label value.
public FilterByLabel ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, int labelValue ) : OpenCvSharp.Mat
src OpenCvSharp.Mat Source image.
dst OpenCvSharp.Mat Destination image.
labelValue int Label value.
Résultat OpenCvSharp.Mat

FilterByLabels() public méthode

Filter a image with the specified label values.
public FilterByLabels ( OpenCvSharp.Mat src, OpenCvSharp.Mat dst, IEnumerable labelValues ) : OpenCvSharp.Mat
src OpenCvSharp.Mat Source image.
dst OpenCvSharp.Mat Destination image.
labelValues IEnumerable Label values.
Résultat OpenCvSharp.Mat

GetLargestBlob() public méthode

Find the largest blob.
public GetLargestBlob ( ) : Blob
Résultat Blob

RenderBlobs() public méthode

Draws all blobs to the specified image.
public RenderBlobs ( OpenCvSharp.Mat img ) : void
img OpenCvSharp.Mat The target image to be drawn.
Résultat void