Java Utililty Methods Image Brighten

List of utility methods to do Image Brighten

Description

The list of methods to do Image Brighten are organized into topic(s).

Method

BufferedImagebrighten(BufferedImage bufferedImage, float amount)
brighten
RescaleOp op = new RescaleOp(amount, 0, null);
bufferedImage = op.filter(bufferedImage, null);
return bufferedImage;
BufferedImagebrighten(BufferedImage image)
brighten
float a = 1.5f;
float b = -20.0f;
RescaleOp op = new RescaleOp(a, b, null);
return filter(image, op);
BufferedImagebrighten(BufferedImage src, float offset)
Returns the supplied src image brightened by a float value from 0 to 10.
RescaleOp rop = new RescaleOp(1, offset, null);
return rop.filter(src, null);
ImagebrightenImage(BufferedImage image, float brigtness, float offset)
brighten Image
RescaleOp rescaleOp = new RescaleOp(brigtness, offset, null);
rescaleOp.filter(image, image);
return image;
BufferedImagebrightenImage(BufferedImage srcImg)
brighten Image
short brighten[] = new short[256];
for (int i = 0; i < 256; i++) {
    short pixelValue = (short) (i + 10);
    if (pixelValue > 255)
        pixelValue = 255;
    else if (pixelValue < 0)
        pixelValue = 0;
    brighten[i] = pixelValue;
...
RescaleOpbrightenOp(float mult, int add)
brighten Op
return new RescaleOp(mult, add, null);