GdPicture.NET.14
GdPicture14 Namespace / GdPictureSegmenter Class / SegmentationMode Property
Example





In This Topic
SegmentationMode Property (GdPictureSegmenter)
In This Topic
Defines the segmentation mode to be used during subsequent segmentation processes.
Syntax
'Declaration
 
Public Property SegmentationMode As SegmentationMode
public SegmentationMode SegmentationMode {get; set;}
public read-write property SegmentationMode: SegmentationMode; 
public function get,set SegmentationMode : SegmentationMode
public: __property SegmentationMode get_SegmentationMode();
public: __property void set_SegmentationMode( 
   SegmentationMode value
);
public:
property SegmentationMode SegmentationMode {
   SegmentationMode get();
   void set (    SegmentationMode value);
}

Property Value

The default value is SegmentationMode.PageLayout.
Remarks
Just to inform you, that the toolkit uses the Paul Heckbert's stack-based seed fill algorithm for the image segmentation.
Example
How to set the required segmentation mode.
Using gdpictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
 
    gdpictureSegmenter.SegmentationMode = SegmentationMode.ConnectedComponents4
 
    'You can do your another stuff with gdpictureSegmenter here.
End Using
using (GdPictureSegmenter gdpictureSegmenter = new GdPictureSegmenter())
{
    gdpictureSegmenter.SegmentationMode = SegmentationMode.ConnectedComponents4;
 
    //You can do your another stuff with gdpictureSegmenter here.
}
See Also