From 196b29757aa17bc04cb0742bb74b412a8d730bc5 Mon Sep 17 00:00:00 2001 From: Quim Sanchez Date: Thu, 15 May 2014 16:03:19 +0200 Subject: [PATCH] Update frame.cpp Image seemed to be ok but still exception was being thrown. --- svo/src/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svo/src/frame.cpp b/svo/src/frame.cpp index 6234d0bd..2d40b960 100644 --- a/svo/src/frame.cpp +++ b/svo/src/frame.cpp @@ -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; });