L_MrcStartBitmapSegmentation

#include "ltsgm.h"

L_INT EXT_FUNCTION L_MrcStartBitmapSegmentation(phSegmention, pBitmap, clrBackground, clrForeground)

pHSEGMENTATION phSegmention;

/* pointer to a segmentation handle */

pBITMAPHANDLE pBitmap;

/* pointer to a bitmap handle */

COLORREF clrBackground;

/* default base background color */

COLORREF clrForeground;

/* default base foreground color */

Initializes the fields in the segmentation handle. This function is available in the (Document/Medical) toolkits.

Parameter

Description

phSegmentation

Pointer to be updated with the initialized segmentation handle.

pBitmap

Pointer to the bitmap handle 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

This function must be called before using any bitmap segmentation functions.

When the handle to the segmentation is no longer needed, it should be freed by calling L_MrcStopBitmapSegmentation. For every call to L_MrcStartBitmapSegmentation there must be a call to L_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

Functions:

L_MrcStopBitmapSegmentation, L_MrcSegmentBitmap, L_MrcSetSegmentData, L_MrcDeleteSegment, L_MrcEnumSegments, L_MrcCombineSegments, L_MrcSaveSegmentation, L_MrcLoadSegmentation, L_MrcCopySegmentationHandle, L_MrcSegmentBitmapExt

Topics:

General Segmentation

 

MRC Bitmap Functions: Start/End Segmentation

 

Using Color Values in LEADTOOLS

Example

For an example, refer to L_MrcSegmentBitmap.