I am trying to adjust brightness and contrast using ImageUtil.contrast It turns out it is working for RGB image only. So it means there's probably something I'm not aware about Gray and Bi-Level images.
Pixel wise Pixel will be too heavy task, if there's any filter , that would be good.
//Contrast
BufferedImage contrastImg = ImageUtil.toBuffered(ImageUtil.contrast(img, 0.3f));
//Brightness
BufferedImage brightenedImg = ImageUtil.toBuffered(ImageUtil.brightness(img, 1.0f));
// Sharpness
BufferedImage sharpenedImg = ImageUtil.sharpen(img, 0.3f);
For RGB it works as expected, it fails for B/W and GRAY though.
Any Ideas?