- image
- The image that will be segmented.
- id
- ID of the segment to be updated.
- data
- Instance of the structure that contains the new segment information.
Visual Basic (Declaration) | |
---|---|
Public Sub SetSegmentData( _ ByVal image As RasterImage, _ ByVal id As Integer, _ ByVal data As MrcSegmentData _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void SetSegmentData( RasterImage image, int id, MrcSegmentData data ) |
C++/CLI | |
---|---|
public: void SetSegmentData( RasterImage image, int id, MrcSegmentData data ) |
Parameters
- image
- The image that will be segmented.
- id
- ID of the segment to be updated.
- data
- Instance of the structure that contains the new segment information.
Visual Basic | Copy Code |
---|---|
Private segmentedImage As RasterImage |
C# | Copy Code |
---|---|
private bool MrcEnumerateSegmentInfoSetSegmentDataCallback(MrcSegmenter segmentHandle, MrcSegmentData data, int iD) |
This method is used to update the segment information.
In the auto segmentation mode, the LEADTOOLS engine will update the segments using the new segment data passed to this method. This process may create or delete segments. The method will update the segments so they remain within the image width and height.
In the manual segmentation mode, the user is free to update the segments. The LEAD engine will not delete or create segments. If an error occurs, the data parameter will be updated with the target segment.
To get segment IDs and segment information, the user can enumerate all segments using the EnumerateSegments method.
The method will return an error if the updated segment exceeds its image boundaries. For more information, refer to Programming with LEADTOOLS MRC.
In the auto segmentation mode, the LEADTOOLS engine will update the segments using the new segment data passed to this method. This process may create or delete segments. The method will update the segments so they remain within the image width and height.
In the manual segmentation mode, the user is free to update the segments. The LEAD engine will not delete or create segments. If an error occurs, the data parameter will be updated with the target segment.
To get segment IDs and segment information, the user can enumerate all segments using the EnumerateSegments method.
The method will return an error if the updated segment exceeds its image boundaries. For more information, refer to Programming with LEADTOOLS MRC.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family