/** * Set whether depth should be registered * * @param rdepth * if true, then switches to depth registered mode, otherwise * depth is not registered */ public void setRegisteredDepth(boolean rdepth) { if (device == null) return; if (depthStream.registered != rdepth) { depthStream.stop(); depthStream = new KinectDepthStream(this, rdepth); } }
tmp = controller.depthStream.getNextFrame(); drawPointCloud((FImage) tmp, vid, 0, 0, 640, 440, 100, 80);
/** * Close the device. Closing an already closed device has no effect. */ public synchronized void close() { if (device == null) return; videoStream.stop(); depthStream.stop(); libfreenectLibrary.freenect_close_device(device); device = null; ACTIVE_CONTROLLERS.remove(this); }
else videoStream = new KinectRGBVideoStream(this); depthStream = new KinectDepthStream(this, registeredDepthMode);
tmp = controller.depthStream.getNextFrame(); drawPointCloud((FImage) tmp, vid, 0, 0, 640, 440, 100, 80);
/** * Close the device. Closing an already closed device has no effect. */ public synchronized void close() { if (device == null) return; videoStream.stop(); depthStream.stop(); libfreenectLibrary.freenect_close_device(device); device = null; ACTIVE_CONTROLLERS.remove(this); }
else videoStream = new KinectRGBVideoStream(this); depthStream = new KinectDepthStream(this, registeredDepthMode);
@Override public MBFImage getNextFrame() { FImage tmp = controller.depthStream.getNextFrame();
/** * Set whether depth should be registered * * @param rdepth * if true, then switches to depth registered mode, otherwise * depth is not registered */ public void setRegisteredDepth(boolean rdepth) { if (device == null) return; if (depthStream.registered != rdepth) { depthStream.stop(); depthStream = new KinectDepthStream(this, rdepth); } }
@Override public MBFImage getNextFrame() { FImage tmp = controller.depthStream.getNextFrame();