GLAREDETECTIONOPTIONS

typedef struct GLAREDETECTIONOPTIONS 
{ 
   L_UINT uStructSize; 
   L_BOOL bExpandGlareRegions; 
   pBITMAPHANDLE pMaskBitmap; 
   L_INT nZonesCount; 
   L_RECT * prcZones; 
} GLAREDETECTIONOPTIONS, * pGLAREDETECTIONOPTIONS; 

The GLAREDETECTIONOPTIONS structure contains the glare information for the BITMAPHANDLE.

Members

uStructSize

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

bExpandGlareRegions

A boolean flag to indicate whether to expand the region bounds. Possible values are:

Value Meaning
TRUE Expand the region bounds.
FALSE Do not expand the region bounds.

Setting this to TRUE will affect mask bitmap only. The regions detected will be expanded by a factor of 1.2 to account for the glare affecting the intensity of the adjacent pixels.

pMaskBitmap

Pointer to a bitmap handle referencing the 8-bit mask containing the glare for the BITMAPHANDLE.

A pixel with value 255 represents no glare and 0 represents glare.

nZonesCount

The number of glare zones detected.

prcZones

Pointer to the buffer containing the bounds to each zone.

Comments

The pMaskBitmap will be null if no glare is detected.

Help Version 22.0.2021.9.29
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.