GdPicture.NET.14
GdPicture14 Namespace / GdPictureSegmenter Class / GdPictureSegmenter Constructor
Example





In This Topic
GdPictureSegmenter Constructor
In This Topic
Creates a new instance of the GdPictureSegmenter class. This instance represents a wrapper, that you will need to perform the image segmentation process. At the same it enables you to find out all required results in one place.
Syntax
'Declaration
 
Public Function New()
public GdPictureSegmenter()
public GdPictureSegmenter(); 
public function GdPictureSegmenter();
public: GdPictureSegmenter();
public:
GdPictureSegmenter();

Return Value

A new instance of the GdPictureSegmenter class.
Remarks
Using only this object you are able to set available parameters required for the segmentation process, run the process itself and also to check results in one place.
Example
How to create and initialize a GdPictureSegmenter object.
'The first option
 
Dim gdpictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
'... setting parameters ...
Dim resId As String = gdpictureSegmenter.RunSegmentation()
'... checking results ...
gdpictureSegmenter.Dispose()
 
'The second option
 
'The very good practice Is to use the keyword "using".
Using gdpictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
    '... setting parameters ...
    Dim resId As String = gdpictureSegmenter.RunSegmentation()
    '... checking results ...
End Using
//The first option:
 
GdPictureSegmenter gdpictureSegmenter = new GdPictureSegmenter();
//... setting parameters ...
string resID = gdpictureSegmenter.RunSegmentation();
//... checking results ...
gdpictureSegmenter.Dispose();
 
//The second option:
 
//The very good practice is to use the keyword "using".
using (GdPictureSegmenter gdpictureSegmenter = new GdPictureSegmenter())
{
    //... setting parameters ...
    string resID = gdpictureSegmenter.RunSegmentation();
    //... checking results ...
}
See Also