LEADTOOLS MRC C++ Class Library Help > Classes and Member Functions > LSegment > LSegment Class Members > LSegment::MrcEnumSegmentsCallBack |
#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.
Parameter |
Description |
pSegment |
Pointer to a SEGMENTDATA structure that contains segment data for the segment being enumerated. |
nSegId |
ID of the segment being enumerated. |
Returns
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
LTSGM For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Elements: |
LSegment::MrcStartBitmapSegmentation, LSegment::MrcStopBitmapSegmentation, LSegment::MrcEnumSegments, LSegment::MrcSetSegmentData, LSegment::MrcDeleteSegment, Class Members |
Topics: |
|
|
|
|
Example
For an example, refer to LSegment::MrcSegmentBitmap.