L_RemoveBackground

Summary

Removes background from a bitmap.

Syntax

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_RemoveBackground(pBitmap, RBGInfo, uFlags)

Parameters

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle referencing the bitmap to be processed.

REMOVEBACKGROUNDINFO* RBGInfo

Pointer to the REMOVEBACKGROUNDINFO structure that sets the amount of removing the background.

L_UINT uFlags

Reserved for future use. Must be 0.

Returns

Value Meaning
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 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

Platforms

Win32, x64.

See Also

Functions

Help Version 22.0.2023.7.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.