EXOBJ_FILTER_OPTIONS (original) (raw)

Summary

Provides the options for filtering the objects.

Syntax

typedef struct EXOBJ_FILTER_OPTIONS { [L_UINT](leadtools-basic-data-types.html) uStructSize; [L_UINT](leadtools-basic-data-types.html) uFlags; [pEXOBJ_OBJECTLIST](exobj-objectlist.html) pRemoved; [L_INT](leadtools-basic-data-types.html) nSmallObjectThreshold; [L_INT](leadtools-basic-data-types.html) nLargeObjectThreshold; } EXOBJ_FILTER_OPTIONS, * pEXOBJ_FILTER_OPTIONS;

Members

L_UINT uStructSize

Size of this structure in bytes, for versioning. Use the sizeof(EXOBJ_FILTER_OPTIONS) operator to calculate this value.

L_UINT uFlags

Flag that must be a combination of the following values:

Value Meaning
EXOBJ_FILTER_REPORT_REMOVED_OBJECTS [0x1] Return a new list containing the filtered out objects (refer to pRemoved)
EXOBJ_FILTER_INVERT_RANGE [0x2] Invert the range (min <= filtered out <= max [instead of: filtered out < min or max < filtered out])

pEXOBJ_OBJECTLIST pRemoved

Pointer to be updated with the list of the removed objects.

L_INT nSmallObjectThreshold

The maximum size of an object that will be considered too small.

L_INT nLargeObjectThreshold

The minimum size of an object that will be considered too large (if specified, must be larger than nSmallObjectThreshold).

Comments

EXOBJ_FILTER_REPORT_REMOVED_OBJECTS must be set in uFlags in order for pRemoved to be updated.

Use -1 for either nLargeObjectThreshold or nSmallObjectThreshold to disable that size filter.

If neither nLargeObjectThreshold nor nSmallObjectThreshold are -1, nLargeObjectThreshold must be larger than nSmallObjectThreshold.

Usage

See Also

LEADTOOLS Raster Imaging C API Help