LSegment::MrcEnumSegments

#include "ltwrappr.h"

L_INT LSegment::MrcEnumSegments(dwFlags)

L_UINT32 dwFlags;

/* reserved flags */

Enumerates the segments. This function is available in the (Document/Medical) toolkits.

Parameter

Description

dwFlags

Reserved for future use. Pass 0.

Returns

>= 1

The number of segments enumerated.

< 1

An error occurred. Refer to Return Codes.

Comments

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.

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

Function:

LSegment::MrcCreateNewSegment, LSegment::MrcStartBitmapSegmentation, LSegment::MrcStopBitmapSegmentation, LSegment::MrcSegmentBitmap, LSegment::MrcEnumSegmentsCallBack, LSegment::MrcSetSegmentData, LSegment::MrcDeleteSegment, LSegment::MrcCombineSegments, LSegment::MrcSaveSegmentation, LSegment::MrcLoadSegmentation, LSegment::MrcCopySegmentationHandle, LSegment::MrcSegmentBitmapExt, Class Members

Topics:

General Segmentation

 

Auto-Segmentation

 

Manual Segmentation

Example

For an example, refer to LSegment::MrcEnumSegmentsCallBack.