applied patch #1473 (timestamp retrieval in OpenNI)
This commit is contained in:
parent
b0ad424087
commit
3243ad3483
@ -970,6 +970,12 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
|
|||||||
case CV_CAP_PROP_OPENNI_REGISTRATION :
|
case CV_CAP_PROP_OPENNI_REGISTRATION :
|
||||||
propValue = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
|
propValue = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
|
||||||
break;
|
break;
|
||||||
|
case CV_CAP_PROP_POS_MSEC :
|
||||||
|
propValue = depthGenerator.GetTimestamp();
|
||||||
|
break;
|
||||||
|
case CV_CAP_PROP_POS_FRAMES :
|
||||||
|
propValue = depthGenerator.GetFrameID();
|
||||||
|
break;
|
||||||
default :
|
default :
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
@ -1060,6 +1066,12 @@ double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx )
|
|||||||
if( imageGenerator.GetMapOutputMode(mode) == XN_STATUS_OK )
|
if( imageGenerator.GetMapOutputMode(mode) == XN_STATUS_OK )
|
||||||
propValue = mode.nFPS;
|
propValue = mode.nFPS;
|
||||||
break;
|
break;
|
||||||
|
case CV_CAP_PROP_POS_MSEC :
|
||||||
|
propValue = imageGenerator.GetTimestamp();
|
||||||
|
break;
|
||||||
|
case CV_CAP_PROP_POS_FRAMES :
|
||||||
|
propValue = imageGenerator.GetFrameID();
|
||||||
|
break;
|
||||||
default :
|
default :
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user