Enum SoArithmeticImageProcessing.ArithmeticOperators
- java.lang.Object
-
- java.lang.Enum<SoArithmeticImageProcessing.ArithmeticOperators>
-
- com.openinventor.imageviz.engines.arithmeticandlogic.arithmeticoperations.SoArithmeticImageProcessing.ArithmeticOperators
-
- All Implemented Interfaces:
IntegerValuedEnum,java.io.Serializable,java.lang.Comparable<SoArithmeticImageProcessing.ArithmeticOperators>
- Enclosing class:
- SoArithmeticImageProcessing
public static enum SoArithmeticImageProcessing.ArithmeticOperators extends java.lang.Enum<SoArithmeticImageProcessing.ArithmeticOperators> implements IntegerValuedEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDThe ADD arithmetic operator adds two images
and
.DIVIDEThe DIVIDE arithmetic operator divides an image
by another
.MAXIMUMThe MAXIMUM arithmetic operator computes the maximum value between two images
and
.MINIMUMThe MINIMUM arithmetic operator computes the minimum value between two images
and
.MULTIPLYThe MULTIPLY arithmetic operator multiplies an image
by another
.SUBTRACTThe SUBTRACT arithmetic operator subtract an image
from
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the integer value of the enum constant.static SoArithmeticImageProcessing.ArithmeticOperatorsvalueOf(int val)Returns the enum constant of this type with the specified integer valuestatic SoArithmeticImageProcessing.ArithmeticOperatorsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SoArithmeticImageProcessing.ArithmeticOperators[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final SoArithmeticImageProcessing.ArithmeticOperators ADD
The ADD arithmetic operator adds two images
and
.
The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
See also:
SoArithmeticValueProcessing,SoLogicalImageProcessing, SoAbsoluteImageProcessing.
-
SUBTRACT
public static final SoArithmeticImageProcessing.ArithmeticOperators SUBTRACT
The SUBTRACT arithmetic operator subtract an image
from
.
The formula is:

Remarks:- Overflows may occur.
- The result of a subtraction between two binary images is a short integer image; this operation is not equivalent to a logical difference.
- Be careful with negative values and the way they are visualized.
-
MULTIPLY
public static final SoArithmeticImageProcessing.ArithmeticOperators MULTIPLY
The MULTIPLY arithmetic operator multiplies an image
by another
.
The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
- Multiplying a binary image by a grayscale image is equivalent to a masking operation.
-
DIVIDE
public static final SoArithmeticImageProcessing.ArithmeticOperators DIVIDE
The DIVIDE arithmetic operator divides an image
by another
.
The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
- If
then
-
MINIMUM
public static final SoArithmeticImageProcessing.ArithmeticOperators MINIMUM
The MINIMUM arithmetic operator computes the minimum value between two images
and
.
The formula is:
For binary images, the MINIMUM operator is equivalent to a logical AND.

-
MAXIMUM
public static final SoArithmeticImageProcessing.ArithmeticOperators MAXIMUM
The MAXIMUM arithmetic operator computes the maximum value between two images
and
.
The formula is:
For binary images, the MAXIMUM operator is equivalent to a logical OR.

-
-
Method Detail
-
values
public static SoArithmeticImageProcessing.ArithmeticOperators[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoArithmeticImageProcessing.ArithmeticOperators c : SoArithmeticImageProcessing.ArithmeticOperators.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoArithmeticImageProcessing.ArithmeticOperators valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static SoArithmeticImageProcessing.ArithmeticOperators valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnumReturns the integer value of the enum constant.- Specified by:
getValuein interfaceIntegerValuedEnum- Returns:
- the integer value of the enum constant.
-
-