IMVBlobFinder2

The IMVBlobFinder2 interface extends the IMVBlobFinder interface.

Methods:

BlobContourPointsCount Count of current contour points.
CalculateExtProperties Calculate blob properties (position, angle, area, ...).
GetBlobContourPoint Get the position of a contour point
GetEnclosingCircle Get the enclosing circle (center + radius).
GetFittingEllipse Get the fitting elipse.
GetXCenterOfMass Get the horizontal center of mass.
GetYCenterOfMass Get the vertical center of mass.
IsConvex Get the convexity flag (blob convex = TRUE, otherwise FALSE).
IsHole Is it a blob or a hole inside a blob?.

Header file: IMVBlobFinder.h
Interface definition language file: IMVBlobFinder.idl
Typelib: MVBlobFinder
Interface ID: IID_IMVBlobFinder2


Property IMVBlobFinder2::BlobContourPointsCount

Declaration: Property Get BlobContourPointsCount As Long

Count of current contour points.

C Prototype:

HRESULT get_BlobContourPointsCount(LONG *pVal);


Property IMVBlobFinder2::CalculateExtProperties

Declaration: Property Get/Put CalculateExtProperties As Boolean

Calculate blob properties (position, angle, area, ...).

C Prototype:

HRESULT put_CalculateExtProperties(VARIANT_BOOL newVal);
HRESULT get_CalculateExtProperties(VARIANT_BOOL *pVal);


Method IMVBlobFinder2::GetBlobContourPoint

Declaration: Sub GetBlobContourPoint(Index As Long, x As Long, y As Long)

Get the position of a contour point

Parameter:

Index Index of contour point.
x X position in pixel.
y Y position in pixel.
C Prototype:

HRESULT GetBlobContourPoint(LONG Index, LONG* x, LONG* y);


Method IMVBlobFinder2::GetEnclosingCircle

Declaration: Sub GetEnclosingCircle(CenterX As Double, CenterY As Double, Radius As Double)

Get the enclosing circle (center + radius).

Parameter:

CenterX X position of the circle center in pixel.
CenterY Y position of the circle center in pixel.
Radius Radius of the circle in pixel.
C Prototype:

HRESULT GetEnclosingCircle(DOUBLE* CenterX, DOUBLE* CenterY, DOUBLE* Radius);


Method IMVBlobFinder2::GetFittingEllipse

Declaration: Sub GetFittingEllipse(CenterX As Double, CenterY As Double, MajorAxis As Double, MinorAxis As Double, Angle As Double)

Get the fitting elipse.

Parameter:

CenterX X position of the ellipse center in pixel.
CenterY Y position of the ellipse center in pixel.
MajorAxis Length of the major axis from the ellipse in pixel.
MinorAxis Length of the minor axis from the ellipse in pixel.
Angle Angle of the ellipse.
C Prototype:

HRESULT GetFittingEllipse(DOUBLE* CenterX, DOUBLE* CenterY, DOUBLE* MajorAxis, DOUBLE* MinorAxis, DOUBLE* Angle);


Method IMVBlobFinder2::GetXCenterOfMass

Declaration: Function GetXCenterOfMass As Double

Get the horizontal center of mass.

C Prototype:

HRESULT GetXCenterOfMass(DOUBLE* value);


Method IMVBlobFinder2::GetYCenterOfMass

Declaration: Function GetYCenterOfMass As Double

Get the vertical center of mass.

C Prototype:

HRESULT GetYCenterOfMass(DOUBLE* value);


Method IMVBlobFinder2::IsConvex

Declaration: Function IsConvex As Boolean

Get the convexity flag (blob convex = TRUE, otherwise FALSE).

C Prototype:

HRESULT IsConvex(VARIANT_BOOL* value);


Method IMVBlobFinder2::IsHole

Declaration: Function IsHole As Boolean

Is it a blob or a hole inside a blob?.

C Prototype:

HRESULT IsHole(VARIANT_BOOL* value);