Enum SoArithmeticValueProcessing.ArithmeticOperators
- java.lang.Object
-
- java.lang.Enum<SoArithmeticValueProcessing.ArithmeticOperators>
-
- com.openinventor.imageviz.engines.arithmeticandlogic.arithmeticoperations.SoArithmeticValueProcessing.ArithmeticOperators
-
- All Implemented Interfaces:
IntegerValuedEnum,java.io.Serializable,java.lang.Comparable<SoArithmeticValueProcessing.ArithmeticOperators>
- Enclosing class:
- SoArithmeticValueProcessing
public static enum SoArithmeticValueProcessing.ArithmeticOperators extends java.lang.Enum<SoArithmeticValueProcessing.ArithmeticOperators> implements IntegerValuedEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDThe ADD arithmetic operator adds image
with a constant C.DIVIDEThe DIVIDE arithmetic operator divides an image
by a constant C.MAXIMUMThe MAXIMUM arithmetic operator computes the maximum value between an image
and a constant C.MINIMUMThe MINIMUM arithmetic operator computes the minimum value between an image and a constant C.MULTIPLYThe MULTIPLY arithmetic operator multiplies an image
by a constant C.SUBTRACTThe SUBTRACT arithmetic operator subtract a constant C from an image.
-
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 SoArithmeticValueProcessing.ArithmeticOperatorsvalueOf(int val)Returns the enum constant of this type with the specified integer valuestatic SoArithmeticValueProcessing.ArithmeticOperatorsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SoArithmeticValueProcessing.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 SoArithmeticValueProcessing.ArithmeticOperators ADD
The ADD arithmetic operator adds image
with a constant C.
The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
-
SUBTRACT
public static final SoArithmeticValueProcessing.ArithmeticOperators SUBTRACT
The SUBTRACT arithmetic operator subtract a constant C from an image. The formula is:
Remarks:- Overflows may occur.
- The result of a subtraction between a binary image and a constant 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 SoArithmeticValueProcessing.ArithmeticOperators MULTIPLY
The MULTIPLY arithmetic operator multiplies an image
by a constant C.
The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
-
DIVIDE
public static final SoArithmeticValueProcessing.ArithmeticOperators DIVIDE
The DIVIDE arithmetic operator divides an image
by a constant C.
The formula is:

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

-
MAXIMUM
public static final SoArithmeticValueProcessing.ArithmeticOperators MAXIMUM
The MAXIMUM arithmetic operator computes the maximum value between an image
and a constant C.
The formula is:
For binary image, the MAXIMUM operator is equivalent to a logical OR.

-
-
Method Detail
-
values
public static SoArithmeticValueProcessing.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 (SoArithmeticValueProcessing.ArithmeticOperators c : SoArithmeticValueProcessing.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 SoArithmeticValueProcessing.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 SoArithmeticValueProcessing.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.
-
-