Merge pull request #3521 from ana-GT:registration_openni2

pull/3636/head
Vadim Pisarevsky 10 years ago
commit cc1090cf3b
  1. 2
      modules/videoio/src/cap_openni2.cpp

@ -573,7 +573,7 @@ bool CvCapture_OpenNI2::setDepthGeneratorProperty( int propIdx, double propValue
// then the property isn't avaliable
if ( color.isValid() )
{
openni::ImageRegistrationMode mode = propValue < 1.0 ? openni::IMAGE_REGISTRATION_OFF : openni::IMAGE_REGISTRATION_DEPTH_TO_COLOR;
openni::ImageRegistrationMode mode = propValue < 1.0 ? openni::IMAGE_REGISTRATION_DEPTH_TO_COLOR : openni::IMAGE_REGISTRATION_OFF;
if( !device.getImageRegistrationMode() == mode )
{
if (device.isImageRegistrationModeSupported(mode))

Loading…
Cancel
Save