Can only read cv::Mat from filestorage?

asked 2012-11-16 15:37:48 -0500

mgb gravatar image

I can write cv::Matx cv::Pointx etc to an xml file with ">>"

But I can't find a way to read them back, either directly or with a cv::FileNodeIterator.

cv::Mat position;
....
((*iter)["position"])>>position;

// but
cv::Point3f position
((*iter)["position"])>>(cv::Point3f)position;
// or
cv::Matx31f position

Don't work. Am I missing something?

edit retag flag offensive close merge delete