LSegment::MrcEnumSegments

Summary

Enumerates the segments.

Syntax

#include "ltwrappr.h"

L_INT LSegment::MrcEnumSegments(dwFlags)

Parameters

L_UINT32 dwFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
>= 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

See Also

Function

Topics

Example

For an example, refer to LSegment::MrcEnumSegmentsCallBack.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.