OpenCV + QTCreator -> cannot read file from hard disk?

asked 2013-11-23 17:44:08 -0600

Hi,

I wanted to switch from Code::Blocks to QTCreator after formatting my hard disk. But when I want to use the code I was compiling before without any errors, I now get an errormessage

/usr/include/opencv2/core/operations.hpp:2794: error: no matching function for call to 'read(cv::FileNodeIterator, std::vector<cv::KeyPoint>&)'

when I execute the following:

std::vector<cv::keypoint> key2

cv::FileStorage fs("keypoint.yml", cv::FileStorage::READ);
cv::FileNode  kptFileNode1 = fs["Class1"];
cv::read( kptFileNode1, key2 );
fs.release();

The error is related to the type of the vector, but why did it work before (in Code::Blocks) and how can I fix this? I'm using ubuntu 12.04 with opencv-2.4.7 and Qt Creator 2.4.1 .

Thanks for helping.

edit retag flag offensive close merge delete