projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7b2196
)
changed returned value of unsupported property
author
Maria Dimashova
<no@email>
Thu, 27 Jan 2011 07:33:34 +0000
(07:33 +0000)
committer
Maria Dimashova
<no@email>
Thu, 27 Jan 2011 07:33:34 +0000
(07:33 +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
575bf3d
..
5937919
100644
(file)
--- a/
modules/highgui/src/cap_openni.cpp
+++ b/
modules/highgui/src/cap_openni.cpp
@@
-265,7
+265,7
@@
void CvCapture_OpenNI::readCamerasParams()
double CvCapture_OpenNI::getProperty( int propIdx )
{
- double propValue =
-1
;
+ double propValue =
0
;
if( isOpened() )
{
@@
-304,7
+304,7
@@
double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
{
CV_Assert( depthGenerator.IsValid() );
- double res =
-1
;
+ double res =
0
;
switch( propIdx )
{
case CV_CAP_PROP_FRAME_WIDTH :
@@
-342,7
+342,7
@@
double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx )
{
CV_Assert( imageGenerator.IsValid() );
- double res =
-1
;
+ double res =
0
;
switch( propIdx )
{
case CV_CAP_PROP_FRAME_WIDTH :