CvBlob Class OpenCvSharp Class Library
Struct that contain information about one blob.
Inheritance Hierarchy

SystemObject
  OpenCvSharp.BlobCvBlob

Namespace:  OpenCvSharp.Blob
Assembly:  OpenCvSharp.Blob (in OpenCvSharp.Blob.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[SerializableAttribute]
public class CvBlob : ICloneable

The CvBlob type exposes the following members.

Constructors

  NameDescription
Public methodCvBlob
Constructor
Top
Properties

  NameDescription
Public propertyArea
Area (moment 00)
Public propertyCentralMoments
True if central moments are being calculated
Public propertyCentroid
Centroid
Public propertyContour
Contour
Public propertyInternalContours
Internal contours
Public propertyLabel
Label assigned to the blob
Public propertyM00
Area (moment 00)
Public propertyM01
Moment 01
Public propertyM02
Moment 02
Public propertyM10
Moment 10
Public propertyM11
Moment 11
Public propertyM20
Moment 20
Public propertyMaxX
X max
Public propertyMaxY
Y max
Public propertyMinX
X min
Public propertyMinY
Y min
Public propertyN02
Normalized central moment 02.
Public propertyN11
Normalized central moment 11.
Public propertyN20
Normalized central moment 20.
Public propertyP1
Hu moment 1.
Public propertyP2
Hu moment 2.
Public propertyRect
CvRect(MinX, MinY, MaxX - MinX, MaxY - MinY)
Public propertyU02
Central moment 02
Public propertyU11
Central moment 11
Public propertyU20
Central moment 20
Top
Methods

  NameDescription
Public methodAngle
Calculates angle orientation of a blob. This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle)
Public methodCalcCentroid
Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid)
Public methodClone
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSaveImage
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 methodSetImageRoiToBlob
Set the ROI of an image to the bounding box of a blob.
Public methodSetMoments
Set central/hu moments and centroid value from moment values (M**)
Public methodToString (Inherited from Object.)
Top
See Also

Reference