Loads segments from a file.
#include "ltsgm.h"
L_LTSGM_API L_INT L_MrcLoadSegmentation(phSegment, pBitmap, pszFileName)
Pointer to a segmentation handle to be updated with the loaded segments.
Pointer to a valid bitmap handle that contains size information used to clip the segments.
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 L_MrcEnumSegments to enumerate the segments.
L_INT MrcLoadSegmentationExample(L_TCHAR* pszFileName,
pBITMAPHANDLE pBitmap)
{
HSEGMENTATION hSegmentation;
L_INT nRet = L_MrcLoadSegmentation(&hSegmentation, pBitmap, pszFileName);
L_MrcStopBitmapSegmentation(hSegmentation);
return nRet;
}