2020-09-24 01:21:14 -0600 | received badge | ● Student (source) |
2017-09-24 11:00:08 -0600 | received badge | ● Popular Question (source) |
2013-08-29 21:18:16 -0600 | asked a question | Conversion of 3x1 or 1x3 cv::Mat to cv::Point3d? I'm dealing with some code in which a do a lot of 3x3 matrix multiplications an also some translation of 3d points using rotation matrices, etc. I decided to use opencv core functionalities for the mathematical operations. The possibility to use the recent constructor added to the cv::Mat class to convert directly a cv::Point3d to a 3x1 cv::Mat reduces and simplify greatly the code. What I am wondering now is if there is a simple way to convert a 3x1 or 1x3 cv::Mat to an cv::Point3d. I always can do something like: or If I worried so much about the performance (avoid the 3 calls to at method). |