C# Class OpenCvSharp.ConnectedComponents

connected components that is returned from Cv2.ConnectedComponentsEx
Show file Open project: shimat/opencvsharp

Public Methods

Method 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

Method Description
ConnectedComponents ( IList blobs, int labels, int labelCount ) : System

Constructor

GetLabelMask ( int label ) : OpenCvSharp.Mat

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

Method Details

FilterBlobs() public method

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.
return OpenCvSharp.Mat

FilterByBlob() public method

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.
return OpenCvSharp.Mat

FilterByLabel() public method

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.
return OpenCvSharp.Mat

FilterByLabels() public method

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.
return OpenCvSharp.Mat

GetLargestBlob() public method

Find the largest blob.
public GetLargestBlob ( ) : Blob
return Blob

RenderBlobs() public method

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