Linear algebra with OpenCV
Tue, 11/20/2012 - 10:22 by Vern
The OpenCV image processing libraries provides hundreds of computer vision algorithms useful in a wide variety of imaging applications. The "core" of the library supports numerous matrix operations which are useful for processing images and for solving linear equations.
A matrix is just a rectangular array of numbers arranged in rows and columns. Here is an example of how to load values into a matrix with 2 rows and 2 columns and add them: