Struct that contain information about one blob.
Inheritance Hierarchy
OpenCvSharp.BlobCvBlob
Namespace: OpenCvSharp.Blob
Assembly: OpenCvSharp.Blob (in OpenCvSharp.Blob.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The CvBlob type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CvBlob |
Constructor
|
Properties
Name | Description | |
---|---|---|
Area |
Area (moment 00)
| |
CentralMoments |
True if central moments are being calculated
| |
Centroid |
Centroid
| |
Contour |
Contour
| |
InternalContours |
Internal contours
| |
Label |
Label assigned to the blob
| |
M00 |
Area (moment 00)
| |
M01 |
Moment 01
| |
M02 |
Moment 02
| |
M10 |
Moment 10
| |
M11 |
Moment 11
| |
M20 |
Moment 20
| |
MaxX |
X max
| |
MaxY |
Y max
| |
MinX |
X min
| |
MinY |
Y min
| |
N02 |
Normalized central moment 02.
| |
N11 |
Normalized central moment 11.
| |
N20 |
Normalized central moment 20.
| |
P1 |
Hu moment 1.
| |
P2 |
Hu moment 2.
| |
Rect |
CvRect(MinX, MinY, MaxX - MinX, MaxY - MinY)
| |
U02 |
Central moment 02
| |
U11 |
Central moment 11
| |
U20 |
Central moment 20
|
Methods
Name | Description | |
---|---|---|
Angle |
Calculates angle orientation of a blob.
This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle)
| |
CalcCentroid |
Calculates centroid.
Centroid will be returned and stored in the blob structure. (cvCentroid)
| |
Clone | ||
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
SaveImage |
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.
| |
SetImageRoiToBlob |
Set the ROI of an image to the bounding box of a blob.
| |
SetMoments |
Set central/hu moments and centroid value from moment values (M**)
| |
ToString | (Inherited from Object.) |
See Also