Raspberry PI is a wonderful system and OpenCV is an outstanding library for computer vision. Here is our how to install and configure OpenCV 3.2.0 for Python/C++ on a Raspberry PI 2 with Raspbian Jessie. On the Net there are many references on this subject, most of them have some missed point or reference to old versions.
The OpenCV library is one of the most relevant open source library for Computer Vision but it contains some very useful function for linear algebra and matrix manipulation. Here is shown how to use
cv::solve function to solve system of linear equation. As real example here is considered the case of parabola passes through 3 points.
To display an OpenCV image or video into your own MFC interface in Visual C++ you can use GDI's function but keep care of details.