Reference Guide
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 oGdPictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
    '... setting parameters ...
    Dim resId As String = oGdPictureSegmenter.RunSegmentation()
    '... checking results ...
    oGdPictureSegmenter.Dispose()
     
    'The second option
     
    'The very good practice Is to use the keyword "using".
    Using oGdPictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
        '... setting parameters ...
        Dim resId As String = oGdPictureSegmenter.RunSegmentation()
        '... checking results ...
    End Using
    //The first option:
     
    GdPictureSegmenter oGdPictureSegmenter = new GdPictureSegmenter();
    //... setting parameters ...
    string resID = oGdPictureSegmenter.RunSegmentation();
    //... checking results ...
    oGdPictureSegmenter.Dispose();
     
    //The second option:
     
    //The very good practice is to use the keyword "using".
    using (GdPictureSegmenter oGdPictureSegmenter = new GdPictureSegmenter())
    {
        //... setting parameters ...
        string resID = oGdPictureSegmenter.RunSegmentation();
        //... checking results ...
    }
    See Also