Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Using toOf from ofxCv

$
0
0

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


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>