Using gdpictureSegmenter As GdPictureSegmenter = New GdPictureSegmenter()
'Set up your prefered parameters for the segmentation.
'Run the segmentation process.
Dim result As String = gdpictureSegmenter.RunSegmentation()
'Check the status.
Dim status As GdPictureStatus = gdpictureSegmenter.GetStat()
If status = GdPictureStatus.OK Then
'The method has been followed without errors.
'Continue ...
Else
'Some error occurred.
MessageBox.Show("The segmentation process has failed with the status: " + status.ToString(), "Example: GetStat")
End If
End Using
using (GdPictureSegmenter gdpictureSegmenter = new GdPictureSegmenter())
{
//Set up your prefered parameters for the segmentation.
//Run the segmentation process.
string result = gdpictureSegmenter.RunSegmentation();
//Check the status.
GdPictureStatus status = gdpictureSegmenter.GetStat();
if (status == GdPictureStatus.OK)
{
//The method has been followed without errors.
//Continue ...
}
else
{
//Some error occurred.
MessageBox.Show("The segmentation process has failed with the status: " + status.ToString(), "Example: GetStat");
}
}