use of boofcv.gui.image.ImageGridPanel in project BoofCV by lessthanoptimal.
the class PlaybackKinectLogApp method process.
public void process() throws IOException {
parseFrame(0);
outRgb = new BufferedImage(rgb.getWidth(), rgb.getHeight(), BufferedImage.TYPE_INT_RGB);
outDepth = new BufferedImage(depth.getWidth(), depth.getHeight(), BufferedImage.TYPE_INT_RGB);
gui = new ImageGridPanel(1, 2, outRgb, outDepth);
ShowImages.showWindow(gui, "Kinect Data");
int frame = 1;
while (true) {
parseFrame(frame++);
ConvertBufferedImage.convertTo_U8(rgb, outRgb, true);
VisualizeImageData.disparity(depth, outDepth, 0, UtilOpenKinect.FREENECT_DEPTH_MM_MAX_VALUE, 0);
gui.repaint();
BoofMiscOps.pause(30);
}
}
Aggregations