LSegment::MrcSaveSegmentation

Summary

Saves the segments to a file.

Syntax

#include "ltwrappr.h"

L_INT LSegment::MrcSaveSegmentation(pszFileName)

Parameters

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 is used to export the segments from the segmentation handle to the specified file in a binary file format.

Call the LSegment::MrcStartBitmapSegmentation function before using any of the segmentation functions. When the LSegment class object is no longer needed, free it by calling the LSegment::MrcStopBitmapSegmentation function.

Required DLLs and Libraries

See Also

Elements

Topics

Example

L_INT LSegment__MrcSaveSegmentationExample(LSegment Segment, L_TCHAR* pszFileName, LBitmapBase &Bitmap) 
{ 
   UNREFERENCED_PARAMETER(Bitmap); 
 
   L_INT nRet; 
 
   nRet = Segment.MrcSaveSegmentation(pszFileName); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS MRC C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.