Hi ,
trying to use ofxCv::toOf() to convert a cv::Mat to an ofImage I get the following error on a Rapsberry pi :
Utilities.h: In function ‘void ofxCv::toOf(cv::Mat, ofImage_&) [with T = unsigned char]’:
src/testApp.cpp:46:27: instantiated from here
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:290:3: error: no matching function for call to ‘toOf(cv::Mat&, unsigned char*)’
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:290:3: note: candidates are:
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:269:10: note: ofVec2f ofxCv::toOf(cv::Point2f)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:269:10: note: candidate expects 1 argument, 2 provided
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:270:10: note: ofVec3f ofxCv::toOf(cv::Point3f)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:270:10: note: candidate expects 1 argument, 2 provided
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:271:14: note: ofRectangle ofxCv::toOf(cv::Rect)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:271:14: note: candidate expects 1 argument, 2 provided
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:272:13: note: ofPolyline ofxCv::toOf(cv::RotatedRect)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:272:13: note: candidate expects 1 argument, 2 provided
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:273:39: note: template ofPolyline ofxCv::toOf(const std::vector >&)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:284:7: note: template void ofxCv::toOf(cv::Mat, ofPixels_&)
../../../addons/ofxCv/libs/ofxCv/include/ofxCv/Utilities.h:288:7: note: template void ofxCv::toOf(cv::Mat, ofImage_&)
could someone point me in the right direction ?
THanks.
E