L_LTIMGCOR_API L_INT L_RemoveBackground(pBitmap, RBGInfo, uFlags)
|pBITMAPHANDLE pBitmap;||pointer to the bitmap|
|REMOVEBACKGROUNDINFO* RBGInfo;||pointer to a structure|
Removes background from a bitmap.
|pBitmap||Pointer to the bitmap handle referencing the bitmap to be processed.|
|RBGInfo||Pointer to the REMOVEBACKGROUNDINFO structure that sets the amount of removing the background.|
|uFlags||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 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
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Medical Web Viewer .NET