Enum SoArithmeticImageProcessing.ArithmeticOperators

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADD
      The ADD arithmetic operator adds two images and .
      DIVIDE
      The DIVIDE arithmetic operator divides an image by another .
      MAXIMUM
      The MAXIMUM arithmetic operator computes the maximum value between two images and .
      MINIMUM
      The MINIMUM arithmetic operator computes the minimum value between two images and .
      MULTIPLY
      The MULTIPLY arithmetic operator multiplies an image by another .
      SUBTRACT
      The SUBTRACT arithmetic operator subtract an image from .
    • Enum Constant Detail

      • 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 name
        java.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: IntegerValuedEnum
        Returns the integer value of the enum constant.
        Specified by:
        getValue in interface IntegerValuedEnum
        Returns:
        the integer value of the enum constant.