List of utility methods to do Image Brighten
BufferedImage | brighten(BufferedImage bufferedImage, float amount) brighten RescaleOp op = new RescaleOp(amount, 0, null); bufferedImage = op.filter(bufferedImage, null); return bufferedImage; |
BufferedImage | brighten(BufferedImage image) brighten float a = 1.5f; float b = -20.0f; RescaleOp op = new RescaleOp(a, b, null); return filter(image, op); |
BufferedImage | brighten(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); |
Image | brightenImage(BufferedImage image, float brigtness, float offset) brighten Image RescaleOp rescaleOp = new RescaleOp(brigtness, offset, null); rescaleOp.filter(image, image); return image; |
BufferedImage | brightenImage(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; ... |
RescaleOp | brightenOp(float mult, int add) brighten Op return new RescaleOp(mult, add, null); |