OpenNI timestamps (Patch #1473)
Description
I am using video capture wrapper for OpenNI to retrieve rgb and depth images from Kinect. I think that retrieving timestamps of these two channels can be useful. They are not synchronized after all. Therefore, I simply added few lines of codes to cap_openni.cpp , for instance to be able to use get(CV_CAP_OPENNI_DEPTH_GENERATOR+CV_CAP_PROP_POS_MSEC)
2 additional case for switch in function "getImageGeneratorProperty"
*
case CV_CAP_PROP_POS_MSEC :
res = imageGenerator.GetTimestamp();
break;
case CV_CAP_PROP_POS_FRAMES :
res = imageGenerator.GetFrameID();
break;
2 additional case for switch in function "getDepthGeneratorProperty"
*
case CV_CAP_PROP_POS_MSEC :
res = depthGenerator.GetTimestamp();
break;
case CV_CAP_PROP_POS_FRAMES :
res = depthGenerator.GetFrameID();
break;
Associated revisions
applied patch #1473 (timestamp retrieval in OpenNI)
History
Updated by Alexander Shishkov about 13 years ago
- Description changed from I am using video capture wrapper for [[OpenNI]] to retrieve rgb and depth ima... to I am using video capture wrapper for OpenNI to retrieve rgb and depth images ... More
Updated by Alexander Shishkov almost 13 years ago
- Priority changed from High to Normal
- Target version deleted ()
Updated by Alexander Shishkov almost 13 years ago
- Tracker changed from Feature to Patch
- Target version deleted ()
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-camera
Updated by Vadim Pisarevsky over 12 years ago
- Target version deleted ()
Updated by Vadim Pisarevsky over 12 years ago
thanks! the patch was applied in 89de0beb
- Status changed from Open to Done
- Assignee set to Vadim Pisarevsky
Updated by Andrey Kamaev about 12 years ago
- Target version set to 2.4.3