L_INT LSegment::MrcStartBitmapSegmentation(pBitmap, clrBackground, clrForeground)
Initializes internal fields of the class object.
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.
|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.
Required DLLs and Libraries
For an example, refer to LSegment::MrcSegmentBitmap.