MaskingOptions
Inheritance: java.lang.Object
public class MaskingOptions
Represents the common image masking options.
Constructors
Constructor | Description |
---|---|
MaskingOptions() |
Fields
Field | Description |
---|---|
BACKGROUND_OBJECT_NUMBER | The background object number |
Methods
Method | Description |
---|---|
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. |
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. |
setMaskingArea(Rectangle value) | Sets the masking area. |
setMethod(int value) | Sets the segmentation method. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
MaskingOptions()
public MaskingOptions()
BACKGROUND_OBJECT_NUMBER
public static final int BACKGROUND_OBJECT_NUMBER
The background object number
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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.
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:
Parameter | Type | Description |
---|---|---|
value | IMaskingArgs | the 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:
Parameter | Type | Description |
---|---|---|
value | Color | the 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:
Parameter | Type | Description |
---|---|---|
value | boolean | 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)
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:
Parameter | Type | Description |
---|---|---|
value | ImageOptionsBase | the image export options. |
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:
Parameter | Type | Description |
---|---|---|
value | Rectangle | the masking area. |
setMethod(int value)
public final void setMethod(int value)
Sets the segmentation method.
Value: The segmentation method.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |