Class GammaImageProcessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double gamma  
      (package private) short[] gammaChange  
      private java.awt.image.LookupOp op3  
      private java.awt.image.LookupOp op4  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void applyFromPropertiesMap​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Import settings from a map of properties.
      double getGamma()
      Returns the currently set gamma value.
      java.awt.image.BufferedImage process​(java.awt.image.BufferedImage image)
      This method should process given image according to image processors which is contained in the layer
      void setGamma​(double gamma)
      Sets a new gamma value, 1 stands for no correction.
      java.util.Map<java.lang.String,​java.lang.String> toPropertiesMap()
      Export settings to a map of properties.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • gamma

        private double gamma
      • op3

        private final java.awt.image.LookupOp op3
      • op4

        private final java.awt.image.LookupOp op4
    • Method Detail

      • getGamma

        public double getGamma()
        Returns the currently set gamma value.
        Returns:
        the currently set gamma value
      • setGamma

        public void setGamma​(double gamma)
        Sets a new gamma value, 1 stands for no correction.
        Parameters:
        gamma - new gamma value
      • process

        public java.awt.image.BufferedImage process​(java.awt.image.BufferedImage image)
        Description copied from interface: ImageProcessor
        This method should process given image according to image processors which is contained in the layer
        Specified by:
        process in interface ImageProcessor
        Parameters:
        image - that should be processed
        Returns:
        processed image
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object