英文:
RescaleOP only applying to half of the image?
问题
我正在使用RescaleOp类来增加图像的亮度/对比度。我的代码如下
RescaleOp rescaleOp = new RescaleOp(1.2f, 15, null);
rescaleOp.filter(image, image); // 源图像和目标图像相同。
然而,这仅对BufferedImage的一半生效。我该如何使其应用于整个图像?
英文:
I am using the rescaleOP class to increase brightness/contrast of an image. My code is here
RescaleOp rescaleOp = new RescaleOp(1.2f, 15, null);
rescaleOp.filter(image, image); // Source and destination are the same.
However, this only applies to half of the BufferedImage. How would I get this to apply to the whole image?
专注分享java语言的经验与见解,让所有开发者获益!
评论