LSegment::MrcEnumSegmentsCallBack

#include "ltwrappr.h"

virtual L_INT LSegment::MrcEnumSegmentsCallBack(pSegment, nSegId)

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

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

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS MRC C++ Class Library Help