Initializes the fields in the segmentation handle.
#include "ltsgm.h"
L_LTSGM_API L_INT L_MrcStartBitmapSegmentation(phSegment, pBitmap, clrBackground, clrForeground)
Pointer to be updated with the initialized segmentation handle.
Pointer to the bitmap handle that references the bitmap to be segmented.
Default base background color for the MRC bitmap.
Default base foreground color for the MRC bitmap.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function must be called before using any bitmap segmentation functions.
When the handle to the segmentation is no longer needed, it should be freed by calling L_MrcStopBitmapSegmentation. For every call to L_MrcStartBitmapSegmentation there must be a call to L_MrcStopBitmapSegmentation.
For an example, refer to L_MrcSegmentBitmap.