1 | initial version |
That's not really OpenCV's thing. It has the solve() function for basic tasks, but if you really need linear algebra use something like Eigen. You can use the Eigen::Map to avoid copying the data. It'll take a bit of playing with the template parameters, since OpenCV is row major and Eigen is column major by default, but they have good documentation.