EXOBJ_FILTER_OPTIONS

typedef struct EXOBJ_FILTER_OPTIONS 
{ 
   L_UINT uStructSize; 
   L_UINT uFlags; 
   pEXOBJ_OBJECTLIST pRemoved; 
   L_INT nSmallObjectThreshold; 
   L_INT nLargeObjectThreshold; 
} EXOBJ_FILTER_OPTIONS, * pEXOBJ_FILTER_OPTIONS; 

Provides the options for filtering the objects.

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.

The structure is used by:

See Also

Functions

Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.