Loads segments from a file.
#include "ltwrappr.h"
L_INT LSegment::MrcLoadSegmentation(pBitmap, pszFileName)
Pointer to the target LBitmapBase object that references the target bitmap.
Character string that contains the output file name.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function loads the segments from a file to the segmentation handle.
Call LSegment::MrcEnumSegments to enumerate the segments.
L_INT LSegment__MrcLoadSegmentationExample(LSegment Segment, L_TCHAR* pszFileName, LBitmapBase &Bitmap)
{
L_INT nRet;
nRet = Segment.MrcLoadSegmentation(&Bitmap, pszFileName);
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}