3D image software

I'm using Java for this project.  Here are some useful resources. 
File outl = new File("left.jpg");
File outr = new File("right.jpg");

ImageReader reader = (ImageReader) ImageIO.getImageReadersByFormatName("jpeg").next();
ImageReadParam param = reader.getDefaultReadParam();
ImageInputStream iis = ImageIO.createImageInputStream(inf);

reader.setInput(iis, true);
imgL = reader.read(0, param);
ImageIO.write(imgL, "jpg", outl);
// Skip the NULL bytes between images.
while(iis.read() == 0);iis.seek(iis.getStreamPosition()-1);
// Restart the reader at this new file position.
reader.reset();
param = reader.getDefaultReadParam();
reader.setInput(iis, true);
imgR = reader.read(0, param);
     ImageIO.write(imgR, "jpg", outr);

Comments