最終更新:2018-04-12 (木) 00:36:09 (2204d)
toCv
Top / toCv
ofImage img; img.load("image.png"); Mat imgMat = toCv(img);
変換
cv::Mat toCv(cv::Mat& mat) cv::Mat toCv(ofMesh& mesh); cv::Point2f? toCv(ofVec2f? vec); cv::Point3f? toCv(ofVec3f? vec); cv::Rect toCv(ofRectangle? rect); std::vector<cv::Point2f?> toCv(const ofPolyline& polyline); std::vector<cv::Point2f?> toCv(const std::vector<ofVec2f?>& points); std::vector<cv::Point3f?> toCv(const std::vector<ofVec3f?>& points); cv::Scalar toCv(ofColor color);