#include "ltwrappr.h"

virtual L_INT LSegment::MrcEnumSegmentsCallBack(pSegment, nSegId)

const pSEGMENTDATA pSegment;

pointer to a structure

L_INT nSegId;

segment identifier

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




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


ID of the segment being enumerated.



The function was successful.

< 1

An error occurred. Refer to Return Codes.


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


For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS MRC C++ Class Library Help