Class AbstractWhiteBalanceAlgorithm

    • Constructor Detail

      • AbstractWhiteBalanceAlgorithm

        public AbstractWhiteBalanceAlgorithm()
    • Method Detail

      • check

        protected void check​(BufferedImage img)
        Checks whether the image can be processed.

        Default implementation only checks whether an image was supplied.
        Parameters:
        img - the image to check
        Throws:
        IllegalStateException - if image fails check
      • doBalance

        protected abstract BufferedImage doBalance​(BufferedImage img)
        Performs the actual white balancing.
        Parameters:
        img - the image to process
        Returns:
        the processed image
      • balance

        public BufferedImage balance​(BufferedImage img)
        Performs white balance on the image.
        Parameters:
        img - the image to process
        Returns:
        the processed image