Klasse BrightnessAugmentation

java.lang.Object
de.edux.augmentation.core.AbstractAugmentation
de.edux.augmentation.effects.BrightnessAugmentation

public class BrightnessAugmentation extends AbstractAugmentation
This augmentation technique adjusts an image's brightness value by a specified amount
  • Konstruktordetails

    • BrightnessAugmentation

      public BrightnessAugmentation(double brightness) throws IllegalArgumentException
      Initialize the class with a double value between -1 and 1 indicating the brightness factor to be applied A value greater than 0 will increase brightness A value lower than 0 will decrease brightness
      Parameter:
      brightness - the brightness factor
      Löst aus:
      IllegalArgumentException - when the brightness value is not between -1 and 1
  • Methodendetails

    • apply

      public BufferedImage apply(BufferedImage image)
      Loop through each image pixel and multiply the pixel value by the brightness value
      Angegeben von:
      apply in Klasse AbstractAugmentation
      Parameter:
      image - the image to augment.
      Gibt zurück:
      the image with brightness augmentation applied to it