Package de.edux.augmentation.effects
Klasse BrightnessAugmentation
java.lang.Object
de.edux.augmentation.core.AbstractAugmentation
de.edux.augmentation.effects.BrightnessAugmentation
This augmentation technique adjusts an image's brightness value by a specified amount
-
Konstruktorübersicht
KonstruktorBeschreibungBrightnessAugmentation
(double brightness) 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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungapply
(BufferedImage image) Loop through each image pixel and multiply the pixel value by the brightness valueVon Klasse geerbte Methoden de.edux.augmentation.core.AbstractAugmentation
readImage
-
Konstruktordetails
-
BrightnessAugmentation
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
Loop through each image pixel and multiply the pixel value by the brightness value- Angegeben von:
apply
in KlasseAbstractAugmentation
- Parameter:
image
- the image to augment.- Gibt zurück:
- the image with brightness augmentation applied to it
-