Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS MRC C++ Class Library Help

LSegment::MrcEnumSegments

Show in webframe

#include "ltwrappr.h"

L_INT LSegment::MrcEnumSegments(dwFlags)

L_UINT32 dwFlags;

/* reserved flags */

Enumerates the segments.

Parameter

Description

dwFlags

Reserved for future use. Pass 0.

Returns

>= 1

The number of segments enumerated.

< 1

An error occurred. Refer to Return Codes.

Comments

This function calls the LSegment::MrcEnumSegmentsCallBack function for each segment found in the auto segmentation process. To get information about each segment, derive a new class from LSegment and override the LSegment::MrcEnumSegmentsCallBack function. This is explained in the description of the callback function itself.

This function can be used to enumerate segments. These segments can be generated manually or automatically.

If there is no callback function implemented OR the callback function succeeded, then the number of enumerated segments will be returned by this function.

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

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

Function:

LSegment::MrcCreateNewSegment, LSegment::MrcStartBitmapSegmentation, LSegment::MrcStopBitmapSegmentation, LSegment::MrcSegmentBitmap, LSegment::MrcEnumSegmentsCallBack, LSegment::MrcSetSegmentData, LSegment::MrcDeleteSegment, LSegment::MrcCombineSegments, LSegment::MrcSaveSegmentation, LSegment::MrcLoadSegmentation, LSegment::MrcCopySegmentationHandle, LSegment::MrcSegmentBitmap, Class Members

Topics:

General Segmentation

 

Auto-Segmentation

 

Manual Segmentation

Example

For an example, refer to LSegment::MrcEnumSegmentsCallBack.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.