Calibration: added support for stereo IR cameras

This commit is contained in:
matlabbe
2016-04-25 09:52:03 -04:00
parent 4cc1c66f09
commit 8e1fc0df56
3 changed files with 18 additions and 2 deletions

View File

@@ -348,7 +348,8 @@ SensorData::SensorData(
else if(!left.empty())
{
UASSERT(left.type() == CV_8UC1 || // Mono
left.type() == CV_8UC3); // RGB
left.type() == CV_8UC3 || // RGB
left.type() == CV_16UC1); // IR
_imageRaw = left;
}
if(right.rows == 1)
@@ -358,7 +359,8 @@ SensorData::SensorData(
}
else if(!right.empty())
{
UASSERT(right.type() == CV_8UC1); // Mono
UASSERT(right.type() == CV_8UC1 || // Mono
right.type() == CV_16UC1); // IR
_depthOrRightRaw = right;
}