AutoMaskingGraphCutOptions

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

public class AutoMaskingGraphCutOptions extends GraphCutMaskingOptions

The GraphCut auto masking options.

Constructors

ConstructorDescription
AutoMaskingGraphCutOptions()Initializes a new instance of the AutoMaskingGraphCutOptions class.

Fields

FieldDescription
BACKGROUND_OBJECT_NUMBERThe background object number

Methods

MethodDescription
appendAutoMaskingArgs_internalized(RasterImage image)Append auto masking args.
equals(Object arg0)
fillInnDefaultStrokes_internalized(RasterImage image)Fill inn default strokes.
getArgs()Gets the arguments for segmentation algorithm.
getAssumedObjects()Gets the assumed objects.
getAssumedObjects_internalized()
getBackgroundReplacementColor()Gets the background replacement color.
getCalculateDefaultStrokes()Gets a value indicating whether default strokes should be calculated.
getClass()
getCombinedObjectsRectangle_internalized()Gets the combined objects rectangle.
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.
getDefaultBackgroundStrokes()Gets the default background strokes.
getDefaultForegroundStrokes()Gets the pre-calculated default foreground strokes.
getDefaultObjectsRectangles()Gets the default objects rectangles.
getExportOptions()Gets the image export options.
getFeatheringRadius()Gets the feathering radius.
getMaskingArea()Gets the masking area.
getMethod()Gets the segmentation method.
getPrecalculationProgressEventHandler()Gets the default points pre-calculation process progress event handler.
hasHumans_internalized()Gets a value indicating whether assumed objects collection has human objects in it.
hashCode()
notify()
notifyAll()
setArgs(IMaskingArgs value)Sets the arguments for segmentation algorithm.
setAssumedObjects(List value)Sets the assumed objects.
setAssumedObjects_internalized(System.Collections.Generic.List value)
setBackgroundReplacementColor(Color value)Sets the background replacement color.
setCalculateDefaultStrokes(boolean value)Sets a value indicating whether default strokes should be calculated.
setCombinedObjectsRectangle_internalized(Rectangle value)The combined objects rectangle.
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.
setDefaultBackgroundStrokes_internalized(Point[] value)The default background strokes.
setDefaultForegroundStrokes_internalized(Point[] value)The pre-calculated default foreground strokes.
setDefaultObjectsRectangles_internalized(Rectangle[] value)The default objects rectangles.
setExportOptions(ImageOptionsBase value)Sets the image export options.
setFeatheringRadius(int value)Sets the feathering radius.
setHumans_internalized(boolean value)A value indicating whether assumed objects collection has human objects in it.
setMaskingArea(Rectangle value)Sets the masking area.
setMethod(int value)Sets the segmentation method.
setPrecalculationProgressEventHandler(ProgressEventHandler value)Sets the default points pre-calculation process progress event handler.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AutoMaskingGraphCutOptions()

public AutoMaskingGraphCutOptions()

Initializes a new instance of the AutoMaskingGraphCutOptions class.

BACKGROUND_OBJECT_NUMBER

public static final int BACKGROUND_OBJECT_NUMBER

The background object number

appendAutoMaskingArgs_internalized(RasterImage image)

public final void appendAutoMaskingArgs_internalized(RasterImage image)

Append auto masking args.

Parameters:

ParameterTypeDescription
imageRasterImageThe image.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fillInnDefaultStrokes_internalized(RasterImage image)

public final void fillInnDefaultStrokes_internalized(RasterImage image)

Fill inn default strokes.

Parameters:

ParameterTypeDescription
imageRasterImageThe image.

getArgs()

public final IMaskingArgs getArgs()

Gets the arguments for segmentation algorithm.

Value: The arguments for segmentation algorithm.

Returns: IMaskingArgs - the arguments for segmentation algorithm.

getAssumedObjects()

public final List<AssumedObjectData> getAssumedObjects()

Gets the assumed objects.

Returns: java.util.List<com.aspose.psd.masking.options.AssumedObjectData> - the assumed objects.

getAssumedObjects_internalized()

public final System.Collections.Generic.List<AssumedObjectData> getAssumedObjects_internalized()

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.psd.masking.options.AssumedObjectData>

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.

getCalculateDefaultStrokes()

public final boolean getCalculateDefaultStrokes()

Gets a value indicating whether default strokes should be calculated.

Returns: boolean - a value indicating whether default strokes should be calculated.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCombinedObjectsRectangle_internalized()

public final Rectangle getCombinedObjectsRectangle_internalized()

Gets the combined objects rectangle.

Returns: Rectangle - the combined objects rectangle.

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.

getDefaultBackgroundStrokes()

public final Point[] getDefaultBackgroundStrokes()

Gets the default background strokes.

Returns: com.aspose.psd.Point[] - the default background strokes.

getDefaultForegroundStrokes()

public final Point[] getDefaultForegroundStrokes()

Gets the pre-calculated default foreground strokes.

Returns: com.aspose.psd.Point[] - the pre-calculated default foreground strokes.

getDefaultObjectsRectangles()

public final Rectangle[] getDefaultObjectsRectangles()

Gets the default objects rectangles.

Returns: com.aspose.psd.Rectangle[] - the default objects rectangles.

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.

getPrecalculationProgressEventHandler()

public final ProgressEventHandler getPrecalculationProgressEventHandler()

Gets the default points pre-calculation process progress event handler.

Value: The progress event handler.

Returns: ProgressEventHandler - the default points pre-calculation process progress event handler.

hasHumans_internalized()

public final boolean hasHumans_internalized()

Gets a value indicating whether assumed objects collection has human objects in it.

Returns: boolean - a value indicating whether assumed objects collection has human objects in it.

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.

setAssumedObjects(List value)

public final void setAssumedObjects(List<AssumedObjectData> value)

Sets the assumed objects.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.psd.masking.options.AssumedObjectData>the assumed objects.

setAssumedObjects_internalized(System.Collections.Generic.List value)

public final void setAssumedObjects_internalized(System.Collections.Generic.List<AssumedObjectData> value)

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Collections.Generic.List<com.aspose.psd.masking.options.AssumedObjectData>

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.

setCalculateDefaultStrokes(boolean value)

public final void setCalculateDefaultStrokes(boolean value)

Sets a value indicating whether default strokes should be calculated.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether default strokes should be calculated.

setCombinedObjectsRectangle_internalized(Rectangle value)

public final void setCombinedObjectsRectangle_internalized(Rectangle value)

The combined objects rectangle.

Parameters:

ParameterTypeDescription
valueRectanglethe combined objects rectangle.

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.

setDefaultBackgroundStrokes_internalized(Point[] value)

public final void setDefaultBackgroundStrokes_internalized(Point[] value)

The default background strokes.

Parameters:

ParameterTypeDescription
valuePoint[]the default background strokes.

setDefaultForegroundStrokes_internalized(Point[] value)

public final void setDefaultForegroundStrokes_internalized(Point[] value)

The pre-calculated default foreground strokes.

Parameters:

ParameterTypeDescription
valuePoint[]the pre-calculated default foreground strokes.

setDefaultObjectsRectangles_internalized(Rectangle[] value)

public final void setDefaultObjectsRectangles_internalized(Rectangle[] value)

The default objects rectangles.

Parameters:

ParameterTypeDescription
valueRectangle[]the default objects rectangles.

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.

setHumans_internalized(boolean value)

public final void setHumans_internalized(boolean value)

A value indicating whether assumed objects collection has human objects in it.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether assumed objects collection has human objects in it.

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.

setPrecalculationProgressEventHandler(ProgressEventHandler value)

public final void setPrecalculationProgressEventHandler(ProgressEventHandler value)

Sets the default points pre-calculation process progress event handler.

Value: The progress event handler.

Parameters:

ParameterTypeDescription
valueProgressEventHandlerthe default points pre-calculation process progress event handler.

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