我发现使用Java读取图像(JPEG)时,很多像素的RGB值与photoshop中的不同,JIMI得到的RGB值与ImageIO也不同,我怎样才能得到与photoshop完全相同的RGB值在java中?谢谢!
这就是我通过以下方式读取图像的方式:
1.ImageIO
BufferedImage test = ImageIO.read(file);
2.吉米
JimiReader createJimiReader = Jimi.createJimiReader(new FileInputStream(filename));
JimiRasterImage rasterImage = createJimiReader.getRasterImage();
3.JAI
FileSeekableStream st = new FileSeekableStream(filename);
BufferedImage asBufferedImage = JAI.create("stream", st).getAsBufferedImage();