AutoMaskingArgs

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.psd.masking.options.IMaskingArgs

public class AutoMaskingArgs implements IMaskingArgs

Represents the arguments that are specified for automated masking methods

Constructors

ConstructorDescription
AutoMaskingArgs()

Methods

MethodDescription
equals(Object arg0)
getClass()
getMaxIterationNumber()Gets the maximum number of iterations.
getNumberOfObjects()Gets the number of objects to separate initial image to (optional), default value is 2 (object and background).
getObjectsPoints()Gets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
getObjectsRectangles()Gets the objects rectangles that belong to separated objects (optional).
getOrphanedPoints()Gets the points that no longer belong to any object (optional).
getPrecision()Gets the precision of segmentation method (optional).
hashCode()
notify()
notifyAll()
setMaxIterationNumber(int value)Sets the maximum number of iterations.
setNumberOfObjects(int value)Sets the number of objects to separate initial image to (optional), default value is 2 (object and background).
setObjectsPoints(Point[][] value)Sets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
setObjectsRectangles(Rectangle[] value)Sets the objects rectangles that belong to separated objects (optional).
setOrphanedPoints(Point[] value)Sets the points that no longer belong to any object (optional).
setPrecision(double value)Sets the precision of segmentation method (optional).
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AutoMaskingArgs()

public AutoMaskingArgs()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getMaxIterationNumber()

public final int getMaxIterationNumber()

Gets the maximum number of iterations.

Value: The maximum maximum number of iterations.

Returns: int - the maximum number of iterations.

getNumberOfObjects()

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.

Returns: int - the number of objects to separate initial image to (optional), default value is 2 (object and background).

getObjectsPoints()

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.

Returns: com.aspose.psd.Point[][] - the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.

getObjectsRectangles()

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.

Returns: com.aspose.psd.Rectangle[] - the objects rectangles that belong to separated objects (optional).

getOrphanedPoints()

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.

Returns: com.aspose.psd.Point[] - the points that no longer belong to any object (optional).

getPrecision()

public final double getPrecision()

Gets the precision of segmentation method (optional).

Value: The precision of segmentation method (optional).

Returns: double - the precision of segmentation method (optional).

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setMaxIterationNumber(int value)

public final void setMaxIterationNumber(int value)

Sets the maximum number of iterations.

Value: The maximum maximum number of iterations.

Parameters:

ParameterTypeDescription
valueintthe maximum number of iterations.

setNumberOfObjects(int value)

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.

Parameters:

ParameterTypeDescription
valueintthe number of objects to separate initial image to (optional), default value is 2 (object and background).

setObjectsPoints(Point[][] value)

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.

Parameters:

ParameterTypeDescription
valuePoint[]the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.

setObjectsRectangles(Rectangle[] value)

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.

Parameters:

ParameterTypeDescription
valueRectangle[]the objects rectangles that belong to separated objects (optional).

setOrphanedPoints(Point[] value)

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.

Parameters:

ParameterTypeDescription
valuePoint[]the points that no longer belong to any object (optional).

setPrecision(double value)

public final void setPrecision(double value)

Sets the precision of segmentation method (optional).

Value: The precision of segmentation method (optional).

Parameters:

ParameterTypeDescription
valuedoublethe precision of segmentation method (optional).

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int