C# Class Emgu.CV.Cvb.CvBlobDetector

Wrapper for the CvBlob detection functions. The Ptr property points to the label image of the cvb::cvLabel function.
Algorithm based on paper "A linear-time component-labeling algorithm using contour tracing technique" of Fu Chang, Chun-Jen Chen and Chi-Jen Lu.
Inheritance: Emgu.Util.UnmanagedObject
显示文件 Open project: fajoy/RTSPExample Class Usage Examples

Public Methods

Method Description
Detect ( Byte>.Image img, CvBlobs blobs ) : uint

Detect blobs from input image.

DrawBlobs ( Byte>.Image image, CvBlobs blobs, BlobRenderType type, double alpha ) : Byte>.Image

Draw the blobs on the image

DrawBlobsMask ( CvBlobs blobs ) : Byte>.Image

Get the binary mask for the blobs listed in the CvBlobs

MeanColor ( CvBlob blob, Byte>.Image originalImage ) : Bgr

Calculates mean color of a blob in an image.

Protected Methods

Method Description
DisposeObject ( ) : void

Release all the unmanaged memory associated with this Blob detector

Method Details

Detect() public method

Detect blobs from input image.
public Detect ( Byte>.Image img, CvBlobs blobs ) : uint
img Byte>.Image The input image
blobs CvBlobs The storage for the detected blobs
return uint

DisposeObject() protected method

Release all the unmanaged memory associated with this Blob detector
protected DisposeObject ( ) : void
return void

DrawBlobs() public method

Draw the blobs on the image
public DrawBlobs ( Byte>.Image image, CvBlobs blobs, BlobRenderType type, double alpha ) : Byte>.Image
image Byte>.Image The binary mask.
blobs CvBlobs The blobs.
type BlobRenderType Drawing type.
alpha double The alpha value. 1.0 for solid color and 0.0 for transparent
return Byte>.Image

DrawBlobsMask() public method

Get the binary mask for the blobs listed in the CvBlobs
public DrawBlobsMask ( CvBlobs blobs ) : Byte>.Image
blobs CvBlobs The blobs
return Byte>.Image

MeanColor() public method

Calculates mean color of a blob in an image.
public MeanColor ( CvBlob blob, Byte>.Image originalImage ) : Bgr
blob CvBlob The blob.
originalImage Byte>.Image The original image
return Bgr