SetSegmentData method (LEADMrc Control)
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