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
Afficher le fichier Open project: fajoy/RTSPExample Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DisposeObject ( ) : void

Release all the unmanaged memory associated with this Blob detector

Method Details

Detect() public méthode

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

DisposeObject() protected méthode

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

DrawBlobs() public méthode

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

DrawBlobsMask() public méthode

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

MeanColor() public méthode

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