LSegment::MrcStartBitmapSegmentation

#include "ltwrappr.h"

L_INT LSegment::MrcStartBitmapSegmentation(pBitmap, clrBackground, clrForeground)

LBitmapBase * pBitmap;

/* pointer to an LBitmapBase object */

COLORREF clrBackground;

/* default base background color */

COLORREF clrForeground;

/* default base foreground color */

Initializes internal fields of the class object. This function is available in the (Document/Medical) toolkits.

Parameter

Description

pBitmap

Pointer to an LBitmapBase object that references the bitmap to be segmented.

clrBackground

Default base background color for the MRC bitmap.

clrForeground

Default base foreground color for the MRC bitmap.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

LSegment::MrcStartBitmapSegmentation must be called before calling any other LEADTOOLS segmentation functions.

When the class object of the segmentation is no longer needed, it should be freed by calling LSegment::MrcStopBitmapSegmentation. For every call to LSegment::MrcStartBitmapSegmentation there must be a call to LSegment::MrcStopBitmapSegmentation.

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::MrcStopBitmapSegmentation, LSegment::MrcSetSegmentData, LSegment::MrcDeleteSegment, LSegment::MrcEnumSegments, LSegment::MrcCombineSegments, LSegment::MrcSaveSegmentation, LSegment::MrcLoadSegmentation, LSegment::MrcCopySegmentationHandle, LSegment::MrcSegmentBitmap, Class Members

Topics:

General Segmentation

 

Auto-Segmentation

 

Manual Segmentation

 

Using Color Values in LEADTOOLS

Example

For an example, refer to LSegment::MrcSegmentBitmap.