SetSegmentData method (LEADMrc Control)

C++ Builder Example

Delphi Example

 

Builder Syntax

int SetSegmentData(TLEADImage* LEADImg, int nSegId, int nSegmentLeft, int nSegmentTop, int nSegmentRight, int nSegmentBottom, unsigned uSegType);

Delphi Syntax

Function SetSegmentData(LEADImg: TLEADImage; nSegId: L_INT; nSegmentLeft: L_INT; nSegmentTop: L_INT; nSegmentRight: L_INT; nSegmentBottom: L_INT; uSegType: L_UINT): L_INT;

Overview

Refer to Working with the LEADMrc Control.

Remarks

(Document/Medical only) Updates the segment information. The LEADTOOLS engine will update the segments using the new segment data passed to this method. This process may create or delete segments.

The user can enumerate all segments using the EnumSegments method to get segment IDs and segment information.

The method will return an error if the updated segment exceeds its image boundaries. The method will update the segments so they remain within the bitmap width and height.

Call the StartSegmentation method before using any of the segmentation methods. When the LEADMrc object is no longer needed, free it by calling the StopSegmentation method.

See Also

Elements

BaseBackColor property, BaseForeColor property, CombineFactor property, CombineFlags property, Error property, ErrorMsg property, Grayscale2BitCoder property, Grayscale8BitCoder property, Grayscale8BitQFactor property, ImageType property, MaskCoder property, MRCPagesCount property, PictureCoder property, PictureQFactor property, Sensitivity property, Text2BitCoder property, AutoSegment method, CombineSegments method, CopySegmentationData method, CreateNewSegment method, DeleteSegment method, EnumSegments method, GetPagesCount method, Load method, LoadSegmentation method, Save method, SaveSegmentation method, SaveT44 method, StartSegmentation method, StopSegmentation method, OnEnumSegments event

Topics

MRC Bitmap Functions: Manipulating Segments