L_MrcStartBitmapSegmentation

Summary

Initializes the fields in the segmentation handle.

Syntax

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcStartBitmapSegmentation(phSegment, pBitmap, clrBackground, clrForeground)

Parameters

pHSEGMENTATION phSegment

Pointer to be updated with the initialized segmentation handle.

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle that references the bitmap to be segmented.

COLORREF clrBackground

Default base background color for the MRC bitmap.

COLORREF clrForeground

Default base foreground color for the MRC bitmap.

Returns

Value Meaning
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

See Also

Functions

Topics

Example

For an example, refer to L_MrcSegmentBitmap.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Mixed Raster Content (MRC) C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.