L_RemoveBackground

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_RemoveBackground(pBitmap, pRBGInfo, uFlags)

pBITMAPHANDLE pBitmap; pointer to the bitmap
pREMOVEBACKGROUNDINFO pRBGInfo; pointer to a structure
L_UINT32 uFlags; flags

Removes background from a bitmap.

Parameter Description
pBitmap Pointer to the bitmap handle referencing the bitmap to be processed.
pRBGInfo Pointer to the REMOVEBACKGROUNDINFO structure that sets the amount of removing the background.
uFlags Reserved for future use. Must be 0.

Returns

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

Comments

This function is useful, especially with medical images and grayscale images, in reducing the values of the background area.

This function reduces background by matching the histogram of the input image to a predefined Sigmoid curve.

In order to enhance anatomic areas, user needs to apply L_MultiScaleEnhancementBitmap to the output of this function.

This function removes background by attenuating its values according to the lower half of the Sigmoid curve, whereas, L_SubtractBackgroundBitmap subtracts the estimated background from the The rolling ball algorithm.

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 only in the Document/Medical toolkits.

This function does not support signed data images.

This function does not support 32 - bit grayscale images.

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.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help