Commit cc1090cf authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3521 from ana-GT:registration_openni2

parents bd4580a2 1ad1b737
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment