added CV_CAP_PROP_OPENNI_REGISTRATION property for getting
This commit is contained in:
parent
c5adaa717b
commit
ec150c24e3
@ -403,6 +403,8 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
|
|||||||
case CV_CAP_PROP_OPENNI_FOCAL_LENGTH :
|
case CV_CAP_PROP_OPENNI_FOCAL_LENGTH :
|
||||||
res = depthFocalLength_VGA;
|
res = depthFocalLength_VGA;
|
||||||
break;
|
break;
|
||||||
|
case CV_CAP_PROP_OPENNI_REGISTRATION :
|
||||||
|
res = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
|
||||||
default :
|
default :
|
||||||
CV_Error( CV_StsBadArg, "Depth generator does not support such parameter for getting.\n");
|
CV_Error( CV_StsBadArg, "Depth generator does not support such parameter for getting.\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user