IMVBlobCounter

This interface is exposed to allow programmatic control of the filter. Read the filter description to see how the filter is used.

BlobCount Contour (Blob) count from the current image.
CounterXPos X position for the counter output text.
CounterYPos Y position for the counter output text.
DrawContour Draws contours into the output image.
DrawCounter Draws the current contour count into the output image.
EnableFilter Enables the contour filter.
EnableHuFilter Enables the hu invariants contour filter.
EnableSizeFilter Enables the size contour filter.
MaxHeight Maximal contour height.
MaxHuInvariants Maximum contour hu invariants.
MaxWidth Maximal contour width.
MinHeight Minimal contour height.
MinHuInvariants Minimum contour hu invariants.
MinWidth Minimal contour width.
RetrievalMode Sets the retrieval mode.

Header file: IMVBlobCounter.h
Interface definition language file: IMVBlobCounter.idl
Typelib: MVBlobCounter
Interface ID: IID_IMVBlobCounter


Property IMVBlobCounter::BlobCount

Declaration: Property Get BlobCount As Long

Contour (Blob) count from the current image. This is a read only property.

Prototype:

HRESULT get_BlobCount(LONG* value);


Property IMVBlobCounter::CounterXPos

Declaration: Property Get/Put CounterXPos As Long

X position for the counter output text.

Prototype:

HRESULT put_CounterXPos(LONG value);
HRESULT get_CounterXPos(LONG* value);


Property IMVBlobCounter::CounterYPos

Declaration: Property Get/Put CounterYPos As Long

Y position for the counter output text.

Prototype:

HRESULT put_CounterYPos(LONG value);
HRESULT get_CounterYPos(LONG* value);


Property IMVBlobCounter::DrawContour

Declaration: Property Get/Put DrawContour As Long

Draws contours into the output image.

Prototype:

HRESULT put_DrawContour(LONG value);
HRESULT get_DrawContour(LONG* value);


Property IMVBlobCounter::DrawCounter

Declaration: Property Get/Put DrawCounter As Long

Draws the current contour count into the output image.

Prototype:

HRESULT put_DrawCounter(LONG value);
HRESULT get_DrawCounter(LONG* value);


Property IMVBlobCounter::EnableFilter

Declaration: Property Get/Put EnableFilter As Long

Enables the contour filter.

Prototype:

HRESULT put_EnableFilter(LONG value);
HRESULT get_EnableFilter(LONG* value);


Property IMVBlobCounter::EnableHuFilter

Declaration: Property Get/Put EnableHuFilter As Long

Enables the hu invariants contour filter.

Prototype:

HRESULT put_EnableHuFilter(LONG value);
HRESULT get_EnableHuFilter(LONG* value);


Property IMVBlobCounter::EnableSizeFilter

Declaration: Property Get/Put EnableSizeFilter As Long

Enables the size contour filter.

Prototype:

HRESULT put_EnableSizeFilter(LONG value);
HRESULT get_EnableSizeFilter(LONG* value);


Property IMVBlobCounter::MaxHeight

Declaration: Property Get/Put MaxHeight As Long

Maximal contour height.

Prototype:

HRESULT put_MaxHeight(LONG value);
HRESULT get_MaxHeight(LONG* value);


Property IMVBlobCounter::MaxHuInvariants

Declaration: Property Get/Put MaxHuInvariants As _MV_HU_MOMENTS

Maximum contour hu invariants.

Parameter:

- -
Prototype:

HRESULT put_MaxHuInvariants(MV_HU_MOMENTS hu);
HRESULT get_MaxHuInvariants(MV_HU_MOMENTS* hu);


Property IMVBlobCounter::MaxWidth

Declaration: Property Get/Put MaxWidth As Long

Maximal contour width.

Prototype:

HRESULT put_MaxWidth(LONG value);
HRESULT get_MaxWidth(LONG* value);


Property IMVBlobCounter::MinHeight

Declaration: Property Get/Put MinHeight As Long

Minimal contour height.

Prototype:

HRESULT put_MinHeight(LONG value);
HRESULT get_MinHeight(LONG* value);


Property IMVBlobCounter::MinHuInvariants

Declaration: Property Get/Put MinHuInvariants As _MV_HU_MOMENTS

Minimum contour hu invariants.

Prototype:

HRESULT put_MinHuInvariants(MV_HU_MOMENTS hu);
HRESULT get_MinHuInvariants(MV_HU_MOMENTS* hu);


Property IMVBlobCounter::MinWidth

Declaration: Property Get/Put MinWidth As Long

Minimal contour width.

Prototype:

HRESULT put_MinWidth(LONG value);
HRESULT get_MinWidth(LONG* value);


Property IMVBlobCounter::RetrievalMode

Declaration: Property Get/Put RetrievalMode As Long

Sets the retrieval mode.

Prototype:

HRESULT put_RetrievalMode(LONG value);
HRESULT get_RetrievalMode(LONG* value);

 

Filter specific structures and enumerators

typedef struct _MV_HU_MOMENTS
{
    double hu1, hu2, hu3, hu4, hu5, hu6, hu7; /* hu invariants */
}MV_HU_MOMENTS;