GraphCutMaskingOptions

Inheritance: java.lang.Object, com.aspose.psd.masking.options.MaskingOptions

public class GraphCutMaskingOptions extends MaskingOptions

The GraphCut auto masking options.

Constructors

ConstructorDescription
GraphCutMaskingOptions()

Fields

FieldDescription
BACKGROUND_OBJECT_NUMBERThe background object number

Methods

MethodDescription
equals(Object arg0)
getArgs()Gets the arguments for segmentation algorithm.
getBackgroundReplacementColor()Gets the background replacement color.
getClass()
getDecompose()Gets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.
getExportOptions()Gets the image export options.
getFeatheringRadius()Gets the feathering radius.
getMaskingArea()Gets the masking area.
getMethod()Gets the segmentation method.
hashCode()
notify()
notifyAll()
setArgs(IMaskingArgs value)Sets the arguments for segmentation algorithm.
setBackgroundReplacementColor(Color value)Sets the background replacement color.
setDecompose(boolean value)Sets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.
setExportOptions(ImageOptionsBase value)Sets the image export options.
setFeatheringRadius(int value)Sets the feathering radius.
setMaskingArea(Rectangle value)Sets the masking area.
setMethod(int value)Sets the segmentation method.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

GraphCutMaskingOptions()

public GraphCutMaskingOptions()

BACKGROUND_OBJECT_NUMBER

public static final int BACKGROUND_OBJECT_NUMBER

The background object number

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getArgs()

public final IMaskingArgs getArgs()

Gets the arguments for segmentation algorithm.

Value: The arguments for segmentation algorithm.

Returns: IMaskingArgs - the arguments for segmentation algorithm.

getBackgroundReplacementColor()

public final Color getBackgroundReplacementColor()

Gets the background replacement color.

Value: The background replacement color. This color will be used as background color in resulting images.

Returns: Color - the background replacement color.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDecompose()

public final boolean getDecompose()

Gets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.

Value: true if decompose; otherwise, false .

Returns: boolean - a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.

getExportOptions()

public final ImageOptionsBase getExportOptions()

Gets the image export options.

Value: The image export options that will be used to create the resulting images.

Returns: ImageOptionsBase - the image export options.

getFeatheringRadius()

public final int getFeatheringRadius()

Gets the feathering radius.

Returns: int - the feathering radius.

getMaskingArea()

public final Rectangle getMaskingArea()

Gets the masking area.

Value: The masking area which is a partial area of the source image. Rectangle.Empty value means full source image area.

Returns: Rectangle - the masking area.

getMethod()

public final int getMethod()

Gets the segmentation method.

Value: The segmentation method.

Returns: int - the segmentation method.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setArgs(IMaskingArgs value)

public final void setArgs(IMaskingArgs value)

Sets the arguments for segmentation algorithm.

Value: The arguments for segmentation algorithm.

Parameters:

ParameterTypeDescription
valueIMaskingArgsthe arguments for segmentation algorithm.

setBackgroundReplacementColor(Color value)

public final void setBackgroundReplacementColor(Color value)

Sets the background replacement color.

Value: The background replacement color. This color will be used as background color in resulting images.

Parameters:

ParameterTypeDescription
valueColorthe background replacement color.

setDecompose(boolean value)

public final void setDecompose(boolean value)

Sets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.

Value: true if decompose; otherwise, false .

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.

setExportOptions(ImageOptionsBase value)

public final void setExportOptions(ImageOptionsBase value)

Sets the image export options.

Value: The image export options that will be used to create the resulting images.

Parameters:

ParameterTypeDescription
valueImageOptionsBasethe image export options.

setFeatheringRadius(int value)

public final void setFeatheringRadius(int value)

Sets the feathering radius.

Parameters:

ParameterTypeDescription
valueintthe feathering radius.

setMaskingArea(Rectangle value)

public final void setMaskingArea(Rectangle value)

Sets the masking area.

Value: The masking area which is a partial area of the source image. Rectangle.Empty value means full source image area.

Parameters:

ParameterTypeDescription
valueRectanglethe masking area.

setMethod(int value)

public final void setMethod(int value)

Sets the segmentation method.

Value: The segmentation method.

Parameters:

ParameterTypeDescription
valueintthe segmentation method.

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