I want to understand if I should prefer to use the matrix operations defined for the cv::Mat class of OpenCV or if their computational time is the same of iterating with for loop on array of doubles.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
OpenCV cv::Mat classes use pointers in order to make them as efficient as possible. That being said, if you want to do a very specific manipulation you may find it quicker to implement yourself. Below is the simple cv::Mat transpose code from the OpenCV Source Code:
|
|||||||||
|