L_MrcDeleteSegment

#include "ltsgm.h"

L_INT EXT_FUNCTION L_MrcDeleteSegment(hSegment, nSegId)

HSEGMENTATION hSegment;

/* segmentation handle */

L_INT nSegId;

/* segment identifier */

Deletes a segment. This function is available in the (Document/Medical) toolkits.

Parameter

Description

hSegment

An existing segmentation handle. This handle is obtained by calling the L_MrcStartBitmapSegmentation function.

nSegId

ID of the segment to delete.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Use this function to delete a specific segment from the segmentation handle. This function is valid with both the automatic and the manual segmentation processes.

Call the L_MrcStartBitmapSegmentation function before using any of the segmentation functions. When the handle to the segmentation is no longer needed, free it by calling the L_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

Functions:

L_MrcCreateNewSegment, L_MrcStartBitmapSegmentation, L_MrcStopBitmapSegmentation, L_MrcSegmentBitmap, L_MrcSetSegmentData, L_MrcEnumSegments, L_MrcCombineSegments, L_MrcSaveSegmentation, L_MrcLoadSegmentation, L_MrcCopySegmentationHandle, L_MrcSegmentBitmapExt

Topics:

Auto-Segmentation

 

Manual Segmentation

 

MRC Bitmap Functions: Manipulating Segments

Example

For an example, refer to L_MrcSetSegmentData.