Update frame.cpp

Image seemed to be ok but still exception was being thrown.
This commit is contained in:
Quim Sanchez
2014-05-15 16:03:19 +02:00
parent ba687d3dd9
commit 196b29757a
+1 -1
View File
@@ -48,7 +48,7 @@ void Frame::initFrame(const cv::Mat& img)
{
// check image
if(img.empty() || img.type() != CV_8UC1 || img.cols != cam_->width() || img.rows != cam_->height())
throw std::runtime_error("Frame: provided image has not the same size as the camera model");
throw std::runtime_error("Frame: provided image has not the same size as the camera model or image is not grayscale");
// Set keypoints to NULL
std::for_each(key_pts_.begin(), key_pts_.end(), [&](Feature* ftr){ ftr=NULL; });