L_MrcLoadSegmentation

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcLoadSegmentation(phSegment, pBitmap, pszFileName)

Loads segments from a file.

Parameters

pHSEGMENTATION phSegment

Pointer to a segmentation handle to be updated with the loaded segments.

pBITMAPHANDLE pBitmap

Pointer to a valid bitmap handle that contains size information used to clip the segments.

L_TCHAR * pszFileName

Character string that contains the output file name.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function loads the segments from a file to the segmentation handle.

Call L_MrcEnumSegments to enumerate the segments.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT MrcLoadSegmentationExample(L_TCHAR*       pszFileName, 
                                                pBITMAPHANDLE  pBitmap) 
{ 
   HSEGMENTATION hSegmentation; 
   L_INT nRet = L_MrcLoadSegmentation(&hSegmentation, pBitmap, pszFileName); 
   L_MrcStopBitmapSegmentation(hSegmentation); 
   return nRet; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Mixed Raster Content (MRC) C API Help