Enumerates the segments.
#include "ltwrappr.h"
L_INT LSegment::MrcEnumSegments(dwFlags)
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
>= 1 | The number of segments enumerated. |
< 1 | An error occurred. Refer to Return Codes. |
This function calls the LSegment::MrcEnumSegmentsCallBack function for each segment found in the auto segmentation process. To get information about each segment, derive a new class from LSegment and override the LSegment::MrcEnumSegmentsCallBack function. This is explained in the description of the callback function itself.
This function can be used to enumerate segments. These segments can be generated manually or automatically.
If there is no callback function implemented OR the callback function succeeded, then the number of enumerated segments will be returned by this function.
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::MrcEnumSegmentsCallBack.