Commit 0b429fee authored by Ana Huaman Quispe's avatar Ana Huaman Quispe

Changed CV_DbgAssert to CV_Assert when setting video modes for OpenNI2.…

Changed CV_DbgAssert to CV_Assert when setting video modes for OpenNI2. Otherwise, in release mode the default modes never get set
parent 009aec51
...@@ -243,7 +243,7 @@ CvCapture_OpenNI2::CvCapture_OpenNI2( int index ) ...@@ -243,7 +243,7 @@ CvCapture_OpenNI2::CvCapture_OpenNI2( int index )
{ {
if (depth.isValid()) if (depth.isValid())
{ {
CV_DbgAssert(depth.setVideoMode(defaultDepthOutputMode()) == openni::STATUS_OK); // xn::DepthGenerator supports VGA only! (Jan 2011) CV_Assert(depth.setVideoMode(defaultDepthOutputMode()) == openni::STATUS_OK); // xn::DepthGenerator supports VGA only! (Jan 2011)
} }
status = depth.start(); status = depth.start();
...@@ -266,7 +266,7 @@ CvCapture_OpenNI2::CvCapture_OpenNI2( int index ) ...@@ -266,7 +266,7 @@ CvCapture_OpenNI2::CvCapture_OpenNI2( int index )
// Set map output mode. // Set map output mode.
if (color.isValid()) if (color.isValid())
{ {
CV_DbgAssert(color.setVideoMode(defaultColorOutputMode()) == openni::STATUS_OK); CV_Assert(color.setVideoMode(defaultColorOutputMode()) == openni::STATUS_OK);
} }
status = color.start(); status = color.start();
if (status != openni::STATUS_OK) if (status != openni::STATUS_OK)
......
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