typedef struct tagCOMPDATA
{
L_UINT uStructSize;
L_INT nMinRange;
L_INT nMaxRange;
L_UINT uFlags;
}
COMPDATA, *pCOMPDATA;
The COMPDATA structure contains the values to be used for thresholding and redistributing the bitmap's color component values for the L_ColorThresholdBitmap function.
Size of the structure. Should be set to sizeof(COMPDATA).
Value that represents the minimum boundary used to threshold the specific color.
Value that represents the maximum boundary used to threshold the specific color.
Value that represents the value that should be distributed to the thresholded component. Possible values are:
Value | Meaning |
---|---|
Define treatment of the values between the min and max threshold range: | |
CLTH_TYP_BANDPASS | [0x00000000] The values falling outside the range are modified. |
CLTH_TYP_BANDREJECT | [0x00000001] The values falling inside the range are modified. |
Define treatment of the thresholded pixel: | |
CLTH_MOD_CHANNEL | [0x00000000] Each channel component is modified independently. |
CLTH_MOD_ALL | [0x00000010] The pixel is rejected the test if one of the component is rejected. |
Define the new values for the rejected values: | |
CLTH_VALUE_MIN | [0x00000000] The rejected values are set to 0. |
CLTH_VALUE_MAX | [0x00000100] The rejected values are set to the maximum value |
CLTH_VALUE_CLAMP | [0x00000200] The rejected component values less that nMin go to the minimum value in the used color space component and the rejected component values greater than nMax go to the maximum value in the used color space component. This works only with the CLTH_MOD_CHANNEL flag. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.