HitMiss Operation

Summary
HitMiss Operation
HitMissElementA Structuring element used in the HitMiss operation.
Functions
hitMissRectangleCreate a rectangular structuring element
hitMissCircleCreate a circular structuring element with the specified radius
hitMissElementCreates a new HitMissElement.
hitMissElement2Creates a new HitMissElement with a pre defined center.
hitMissElementDeleteCreates a new HitMissElement.
HitMissDo the HitMiss operation in a 8-bit unsigned binary image.

HitMissElement

typedef Kernel HitMissElement

A Structuring element used in the HitMiss operation.  There are 3 possibilities for the a element of the values array: HM_DONT_CARE, HM_BLACK or HM_WHITE.

Summary
Functions
hitMissRectangleCreate a rectangular structuring element
hitMissCircleCreate a circular structuring element with the specified radius
hitMissElementCreates a new HitMissElement.
hitMissElement2Creates a new HitMissElement with a pre defined center.
hitMissElementDeleteCreates a new HitMissElement.
HitMissDo the HitMiss operation in a 8-bit unsigned binary image.

Functions

hitMissRectangle

HitMissElement *hitMissRectangle(int w,
int h)

Create a rectangular structuring element

Parameters

wwidth of the element
hheight of the element

Returns

The rectangular element created

See also

HitMissElement

hitMissCircle

HitMissElement *hitMissCircle(int radius)

Create a circular structuring element with the specified radius

Parameters

radiusthe radius of the circle

Returns

The circular element created

See also

HitMissElement

hitMissElement

HitMissElement *hitMissElement(Matrix *m)

Creates a new HitMissElement.

Parameters

mthe matrix of the HitMissElement

Returns

The new element with anchor at the center (cols/2, rows/2)

See Also

HitMissElement

hitMissElement2

HitMissElement *hitMissElement2(Matrix *m,
int anchorx,
int anchory)

Creates a new HitMissElement with a pre defined center.

Parameters

mthe matrix of the HitMissElement.
anchorxx of the center of the element
anchoryy of the center of the element

Returns

The new element

See Also

HitMissElement

hitMissElementDelete

void hitMissElementDelete(HitMissElement *se)

Creates a new HitMissElement.

Parameters

seHitMissElement to be deleted

See Also

HitMissElement

HitMiss

void HitMiss(Image *src,
Image *dest,
HitMissElement *se)

Do the HitMiss operation in a 8-bit unsigned binary image.  When a pixel has a hit its corresponding pixel is painted black in the dest image.

Parameters

srcimage to match the HitMissElement
destdestination image
seHitMissElement used

See Also

HitMissElement

typedef Kernel HitMissElement
A Structuring element used in the HitMiss operation.
HitMissElement *hitMissRectangle(int w,
int h)
Create a rectangular structuring element
HitMissElement *hitMissCircle(int radius)
Create a circular structuring element with the specified radius
HitMissElement *hitMissElement(Matrix *m)
Creates a new HitMissElement.
HitMissElement *hitMissElement2(Matrix *m,
int anchorx,
int anchory)
Creates a new HitMissElement with a pre defined center.
void hitMissElementDelete(HitMissElement *se)
Creates a new HitMissElement.
void HitMiss(Image *src,
Image *dest,
HitMissElement *se)
Do the HitMiss operation in a 8-bit unsigned binary image.
Close