Handles each enumerated segment that LSegment::MrcEnumSegments has enumerated.
#include "ltwrappr.h"
virtual L_INT LSegment::MrcEnumSegmentsCallBack(pSegment, nSegId)
Pointer to a SEGMENTDATA structure that contains segment data for the segment being enumerated.
ID of the segment being enumerated.
Value | Meaning |
---|---|
SUCCESS | 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.
For an example, refer to LSegment::MrcSegmentBitmap.