void KinectCamera::closecamera(void) { mColorStream.destroy(); mDepthStream.destroy(); mDevice.close(); openni:: OpenNI::shutdown(); }
void closeDevice() { g_depthStream.stop(); g_colorStream.stop(); g_irStream.stop(); g_depthStream.destroy(); g_colorStream.destroy(); g_irStream.destroy(); g_device.close(); openni::OpenNI::shutdown(); }
~Impl() { color_stream.stop(); color_stream.destroy(); device.close(); openni::OpenNI::shutdown(); }