Search in sources :

Example 6 with ImageGridPanel

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);
    }
}
Also used : ImageGridPanel(boofcv.gui.image.ImageGridPanel) BufferedImage(java.awt.image.BufferedImage) ConvertBufferedImage(boofcv.io.image.ConvertBufferedImage)

Aggregations

ImageGridPanel (boofcv.gui.image.ImageGridPanel)6 BufferedImage (java.awt.image.BufferedImage)6 MediaManager (boofcv.io.MediaManager)4 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)4 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)4 GrayF32 (boofcv.struct.image.GrayF32)4 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)3 Homography2D_F64 (georegression.struct.homography.Homography2D_F64)3 PlToGrayMotion2D (boofcv.abst.sfm.d2.PlToGrayMotion2D)2 ConfigBackgroundBasic (boofcv.factory.background.ConfigBackgroundBasic)2 ConfigBackgroundGmm (boofcv.factory.background.ConfigBackgroundGmm)2 SimpleImageSequence (boofcv.io.image.SimpleImageSequence)2 GrayU8 (boofcv.struct.image.GrayU8)2 ImageBase (boofcv.struct.image.ImageBase)2 ImageType (boofcv.struct.image.ImageType)2 Planar (boofcv.struct.image.Planar)2 PointTracker (boofcv.abst.feature.tracker.PointTracker)1 BackgroundModelMoving (boofcv.alg.background.BackgroundModelMoving)1 BackgroundModelStationary (boofcv.alg.background.BackgroundModelStationary)1 PointTransformHomography_F32 (boofcv.alg.distort.PointTransformHomography_F32)1