Merge pull request #3404 from alalek:openni2_patch
This commit is contained in:
commit
34f23b5917
@ -646,7 +646,7 @@ bool CvCapture_OpenNI2::setImageGeneratorProperty(int propIdx, double propValue)
|
|||||||
{
|
{
|
||||||
case CV_CAP_PROP_OPENNI_OUTPUT_MODE :
|
case CV_CAP_PROP_OPENNI_OUTPUT_MODE :
|
||||||
{
|
{
|
||||||
openni::VideoMode mode;
|
openni::VideoMode mode = color.getVideoMode();
|
||||||
|
|
||||||
switch( cvRound(propValue) )
|
switch( cvRound(propValue) )
|
||||||
{
|
{
|
||||||
|
@ -192,7 +192,11 @@ int main( int argc, char* argv[] )
|
|||||||
if( isVideoReading )
|
if( isVideoReading )
|
||||||
capture.open( filename );
|
capture.open( filename );
|
||||||
else
|
else
|
||||||
capture.open( CAP_OPENNI );
|
{
|
||||||
|
capture.open( CAP_OPENNI2 );
|
||||||
|
if( !capture.isOpened() )
|
||||||
|
capture.open( CAP_OPENNI );
|
||||||
|
}
|
||||||
|
|
||||||
cout << "done." << endl;
|
cout << "done." << endl;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user