Initializes internal fields of the class object.
#include "ltwrappr.h"
L_INT LSegment::MrcStartBitmapSegmentation(pBitmap, clrBackground, clrForeground)
Pointer to an LBitmapBase object 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. |
LSegment::MrcStartBitmapSegmentation must be called before calling any other LEADTOOLS segmentation functions.
When the class object of the segmentation is no longer needed, it should be freed by calling LSegment::MrcStopBitmapSegmentation. For every call to LSegment::MrcStartBitmapSegmentation there must be a call to LSegment::MrcStopBitmapSegmentation.
For an example, refer to LSegment::MrcSegmentBitmap.