L_LTIMGCOR_API L_INT L_RemoveBackground(pBitmap, RBGInfo, uFlags)
Removes background from a bitmap.
Pointer to the bitmap handle referencing the bitmap to be processed.
Pointer to the REMOVEBACKGROUNDINFO structure that sets the amount of removing the background.
Reserved for future use. Must be 0.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
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
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries