public class AutoMaskingArgs extends Object implements IMaskingArgs
Represents the arguments that are specified for automated masking methods
IMaskingArgs| Constructor and Description |
|---|
AutoMaskingArgs() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxIterationNumber()
Gets the maximum number of iterations.
|
int |
getNumberOfObjects()
Gets the number of objects
to separate initial image to (optional), default value is 2 (object and background).
|
Point[][] |
getObjectsPoints()
Gets the points that belong to separated objects (optional)
NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
|
Rectangle[] |
getObjectsRectangles()
Gets the objects rectangles that belong to separated objects (optional).
|
Point[] |
getOrphanedPoints()
Gets the points that no longer belong to any object (optional).
|
double |
getPrecision()
Gets the precision of segmentation method (optional).
|
void |
setMaxIterationNumber(int value)
Sets the maximum number of iterations.
|
void |
setNumberOfObjects(int value)
Sets the number of objects
to separate initial image to (optional), default value is 2 (object and background).
|
void |
setObjectsPoints(Point[][] value)
Sets the points that belong to separated objects (optional)
NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
|
void |
setObjectsRectangles(Rectangle[] value)
Sets the objects rectangles that belong to separated objects (optional).
|
void |
setOrphanedPoints(Point[] value)
Sets the points that no longer belong to any object (optional).
|
void |
setPrecision(double value)
Sets the precision of segmentation method (optional).
|
public final int getNumberOfObjects()
Gets the number of objects to separate initial image to (optional), default value is 2 (object and background).
Value: The number of objects.public final void setNumberOfObjects(int value)
Sets the number of objects to separate initial image to (optional), default value is 2 (object and background).
Value: The number of objects.value - the number of objects
to separate initial image to (optional), default value is 2 (object and background).public final Rectangle[] getObjectsRectangles()
Gets the objects rectangles that belong to separated objects (optional). This parameter is used to increase segmentation method precision.
Value: The objects rectangles.public final void setObjectsRectangles(Rectangle[] value)
Sets the objects rectangles that belong to separated objects (optional). This parameter is used to increase segmentation method precision.
Value: The objects rectangles.value - the objects rectangles that belong to separated objects (optional).public final Point[][] getObjectsPoints()
Gets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image. This parameter is used to increase segmentation method precision.
Value: The objects points.public final void setObjectsPoints(Point[][] value)
Sets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image. This parameter is used to increase segmentation method precision.
Value: The objects points.value - the points that belong to separated objects (optional)
NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.public final Point[] getOrphanedPoints()
Gets the points that no longer belong to any object (optional). This parameter is used only in case of re-segmentation.
Value: The orphaned points.public final void setOrphanedPoints(Point[] value)
Sets the points that no longer belong to any object (optional). This parameter is used only in case of re-segmentation.
Value: The orphaned points.value - the points that no longer belong to any object (optional).public final double getPrecision()
Gets the precision of segmentation method (optional).
Value: The precision of segmentation method (optional).public final void setPrecision(double value)
Sets the precision of segmentation method (optional).
Value: The precision of segmentation method (optional).value - the precision of segmentation method (optional).public final int getMaxIterationNumber()
Gets the maximum number of iterations.
Value: The maximum maximum number of iterations.public final void setMaxIterationNumber(int value)
Sets the maximum number of iterations.
Value: The maximum maximum number of iterations.value - the maximum number of iterations.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.