RescaleOP只应用于图像的一半?

huangapple 未分类评论68阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年8月15日 01:56:29
  • 转载请务必保留本文链接:https://java.coder-hub.com/63417835.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定