LSegment::MrcEnumSegmentsCallBack

Summary

Handles each enumerated segment that LSegment::MrcEnumSegments has enumerated.

Syntax

#include "ltwrappr.h"

virtual L_INT LSegment::MrcEnumSegmentsCallBack(pSegment, nSegId)

Parameters

const pSEGMENTDATA pSegment

Pointer to a SEGMENTDATA structure that contains segment data for the segment being enumerated.

L_INT nSegId

ID of the segment being enumerated.

Returns

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

Comments

This callback function is called for each segment enumerated by the LSegment::MrcEnumSegments function. The callback receives segment data and segment ID.

If you need to investigate the segments, create a new class derived from LSegment and override LSegment::MrcEnumSegmentsCallBack adding the desired processing to the overriding version. (Create your object from the new class.)

This function can be used when performing automatic or manual segmentation.

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

For an example, refer to LSegment::MrcSegmentBitmap.

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.