Enum SoArithmeticValueProcessing.ArithmeticOperators

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADD
      The ADD arithmetic operator adds image with a constant C.
      DIVIDE
      The DIVIDE arithmetic operator divides an image by a constant C.
      MAXIMUM
      The MAXIMUM arithmetic operator computes the maximum value between an image and a constant C.
      MINIMUM
      The MINIMUM arithmetic operator computes the minimum value between an image and a constant C.
      MULTIPLY
      The MULTIPLY arithmetic operator multiplies an image by a constant C.
      SUBTRACT
      The SUBTRACT arithmetic operator subtract a constant C from an image.
    • 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 name
        java.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: IntegerValuedEnum
        Returns the integer value of the enum constant.
        Specified by:
        getValue in interface IntegerValuedEnum
        Returns:
        the integer value of the enum constant.