projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5adaa7
)
added CV_CAP_PROP_OPENNI_REGISTRATION property for getting
author
Maria Dimashova
<no@email>
Tue, 9 Aug 2011 13:58:05 +0000
(13:58 +0000)
committer
Maria Dimashova
<no@email>
Tue, 9 Aug 2011 13:58:05 +0000
(13:58 +0000)
modules/highgui/src/cap_openni.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_openni.cpp
b/modules/highgui/src/cap_openni.cpp
index
463abe1
..
74bc74a
100644
(file)
--- a/
modules/highgui/src/cap_openni.cpp
+++ b/
modules/highgui/src/cap_openni.cpp
@@
-403,6
+403,8
@@
double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
case CV_CAP_PROP_OPENNI_FOCAL_LENGTH :
res = depthFocalLength_VGA;
break;
+ case CV_CAP_PROP_OPENNI_REGISTRATION :
+ res = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
default :
CV_Error( CV_StsBadArg, "Depth generator does not support such parameter for getting.\n");
}