L_LTIMGCOR_API L_INT L_BrightnessDetection(pBitmap, fBrightness, uFlags)
|pBITMAPHANDLE pBitmap;||pointer to the bitmap handle|
|L_FLOAT *fBrightness;||amount of brightness|
Finds the brightness amount in a bitmap.
|pBitmap||Pointer to the bitmap handle referencing the bitmap to be tested.|
|fBrightness||Pointer to a variable to be updated with the amount of brightness in the image. Valid values range from 0.0 to 1.0f|
|uFlags||Reserved for future use. Pass 0.|
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
Support for L_BrightnessDetection is only available in the Document and Medical Imaging toolkits.
This function is useful for filtering out overexposed images captured by portable devices.
This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.
This function supports 12- and 16-bit grayscale and 48- and 64-bit color images. Support for 12- and 16-bit grayscale and 48- and 64-bit color images is available in the Document and Medical Imaging toolkits.
This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.
Required DLLs and Libraries
Win32, x64, Linux.
|Functions:||L_GlareDetection, L_TextBlurDetector, L_SignalToNoiseRatio|
|Topics:||Raster Image Functions: Image Analysis|
|Processing an Image|
|Changing Brightness and Contrast|
Medical Web Viewer .NET