StructElement

typedef struct _StructElement

{

    BYTE................................................................................................................................................................. **StrMask;

    int                   Mwidth;

    int........................................................................................................................................................................... Mheight;

    int                   MPx;

    int                   MPy;

} StrE;

Description

This structure specifies the structuring functions used by the morphological operations. The user should allocate memory for the structuring function matrix (StrMask) and fill the Mheight and Mwidth fields correctly. MP (MPx, MPy) is a marked point in the matrix which is also specified by the user. Usually the marked point is MP (Mheight div 2, Mwidth div 2), but any other point can be specified. The morphological operations and weighted filters do not free the memory allocated by the structuring function.

For binary operations, 1 valued elements of StrMask, specifiy the object and all other values specifiy the background. For grayscale operations, all element values, specify an entry in the grayscale palette.

Members of the structure

BYTE

**StrMask

Structuring Function

int

Mwidth

Number of Structuring Element columns

int

Mheight

Number of Structuring Element rows

int

MPx

Structuring Element Marked Point column coordinate

int

MPy

Structuring Element Marked Point row coordinate

Requirements

Header :     Declared in BiFilter.h.