/** * Switch the main camera between InfraRed and RGB modes. * * @param irmode * if true, then switches to IR mode, otherwise switches to RGB * mode. */ public void setIRMode(boolean irmode) { if (device == null) return; if (irmode) { if (!(videoStream instanceof KinectIRVideoStream)) { videoStream.stop(); videoStream = new KinectIRVideoStream(this); } } else { if (!(videoStream instanceof KinectRGBVideoStream)) { videoStream.stop(); videoStream = new KinectRGBVideoStream(this); } } }
/** * Switch the main camera between InfraRed and RGB modes. * * @param irmode * if true, then switches to IR mode, otherwise switches to RGB * mode. */ public void setIRMode(boolean irmode) { if (device == null) return; if (irmode) { if (!(videoStream instanceof KinectIRVideoStream)) { videoStream.stop(); videoStream = new KinectIRVideoStream(this); } } else { if (!(videoStream instanceof KinectRGBVideoStream)) { videoStream.stop(); videoStream = new KinectRGBVideoStream(this); } } }
videoStream = new KinectIRVideoStream(this); else videoStream = new KinectRGBVideoStream(this); depthStream = new KinectDepthStream(this, registeredDepthMode);
videoStream = new KinectIRVideoStream(this); else videoStream = new KinectRGBVideoStream(this); depthStream = new KinectDepthStream(this, registeredDepthMode);