L_BrightnessDetection - Raster Imaging C API Help

L_BrightnessDetection

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_BrightnessDetection(pBitmap, fBrightness, uFlags)

pBITMAPHANDLE pBitmap; pointer to the bitmap handle
L_FLOAT *fBrightness; amount of brightness
L_UINT uFlags; flags

Finds the brightness amount in a bitmap.

Parameter Description
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.

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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

LTIMGCOR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help