L_MrcLoadSegmentation

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcLoadSegmentation(phSegment, pBitmap, pszFileName)

pHSEGMENTATION phSegment;

pointer to segmentation handle

pBITMAPHANDLE pBitmap;

pointer to a valid bitmap

L_TCHAR * pszFileName;

output file name

Loads segments from a file.

Parameter

Description

phSegment

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

pBitmap

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

pszFileName

Character string that contains the output file name.

Returns

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

LTSGM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_MrcSaveSegmentation, L_MrcCreateNewSegment, L_MrcStartBitmapSegmentation, L_MrcStopBitmapSegmentation, L_MrcSetSegmentData, L_MrcEnumSegments, L_MrcCombineSegments, L_MrcCopySegmentationHandle, L_MrcSegmentBitmap

Topics:

Auto-Segmentation

 

Manual Segmentation

 

MRC Bitmap Functions: Manipulating Segments

Example

L_LTSGMTEX_API L_INT MrcLoadSegmentationExample(L_TCHAR*       pszFileName, 
pBITMAPHANDLE  pBitmap) 
{ 
   HSEGMENTATION hSegmentation; 
   L_INT nRet = L_MrcLoadSegmentation(&hSegmentation, pBitmap, pszFileName); 
   L_MrcStopBitmapSegmentation(hSegmentation); 
   return nRet; 
} 

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Mixed Raster Content (MRC) C API Help
Click or drag to resize