[OpenJDK 2D-Dev] ImageIO.read(jpeg): different RGB from OpenJDK and Oracle Java
Bill Ross
ross at cgl.ucsf.edu
Sun Sep 17 21:55:35 UTC 2017
http://phobrain.com/pr/home/gallery/img2112a.jpg
Example RGB diff between OpenJDK and Oracle; 673/58903 pixels differ,
often by 1, but also like this:
43480c43480
< -9876933
---
> -9942469
43491c43491
< -9876931
---
> -9942467
--------
BufferedImage buffered = ImageIO.read("img2112a.jpg");
try {
PrintStream out = new PrintStream(new File("pixels_2112"));
for (int i=0; i<buffered.getWidth(); i++) {
for (int j=0; j<buffered.getHeight(); j++) {
out.println("" + buffered.getRGB(i, j));
}
}
out.close();
} catch (Exception e) {
e.printStackTrace();
}
As discovered in BoofCV:
https://groups.google.com/forum/#!topic/boofcv/b40hIlt8Cz0
Bigger picture:
http://phobrain.com/pr/home/poincaredesc.html
Bill Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20170917/ce2367e1/attachment.html>
More information about the 2d-dev
mailing list