public class AutoMaskingGraphCutOptions extends GraphCutMaskingOptions
The GraphCut auto masking options.
BACKGROUND_OBJECT_NUMBER| Constructor and Description |
|---|
AutoMaskingGraphCutOptions()
Initializes a new instance of the
AutoMaskingGraphCutOptions class. |
| Modifier and Type | Method and Description |
|---|---|
List<AssumedObjectData> |
getAssumedObjects()
Gets the assumed objects.
|
boolean |
getCalculateDefaultStrokes()
Gets a value indicating whether default strokes should be calculated.
|
Point[] |
getDefaultBackgroundStrokes()
Gets the default background strokes.
|
Point[] |
getDefaultForegroundStrokes()
Gets the pre-calculated default foreground strokes.
|
Rectangle[] |
getDefaultObjectsRectangles()
Gets the default objects rectangles.
|
ProgressEventHandler |
getPrecalculationProgressEventHandler()
Gets the default points pre-calculation process progress event handler.
|
void |
setAssumedObjects(List<AssumedObjectData> value)
Sets the assumed objects.
|
void |
setCalculateDefaultStrokes(boolean value)
Sets a value indicating whether default strokes should be calculated.
|
void |
setPrecalculationProgressEventHandler(ProgressEventHandler value)
Sets the default points pre-calculation process progress event handler.
|
getFeatheringRadius, setFeatheringRadiusgetArgs, getBackgroundReplacementColor, getDecompose, getExportOptions, getMaskingArea, getMethod, setArgs, setBackgroundReplacementColor, setDecompose, setExportOptions, setMaskingArea, setMethodpublic AutoMaskingGraphCutOptions()
Initializes a new instance of the AutoMaskingGraphCutOptions class.
public final Point[] getDefaultForegroundStrokes()
Gets the pre-calculated default foreground strokes.
public final Point[] getDefaultBackgroundStrokes()
Gets the default background strokes.
public final Rectangle[] getDefaultObjectsRectangles()
Gets the default objects rectangles.
public final List<AssumedObjectData> getAssumedObjects()
Gets the assumed objects.
public final void setAssumedObjects(List<AssumedObjectData> value)
Sets the assumed objects.
value - the assumed objects.public final boolean getCalculateDefaultStrokes()
Gets a value indicating whether default strokes should be calculated.
public final void setCalculateDefaultStrokes(boolean value)
Sets a value indicating whether default strokes should be calculated.
value - a value indicating whether default strokes should be calculated.public final ProgressEventHandler getPrecalculationProgressEventHandler()
Gets the default points pre-calculation process progress event handler.
Value: The progress event handler.public final void setPrecalculationProgressEventHandler(ProgressEventHandler value)
Sets the default points pre-calculation process progress event handler.
Value: The progress event handler.value - the default points pre-calculation process progress event handler.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.