C ++ does not have a standard matrix class per se. I think that there were too many different applications of this class, which made one solution impossible for any size. There is an example and discussion in Straustrup’s book ( C ++ Programming Language (Third Edition)) regarding a relatively simple implementation for a numerical matrix.
However, it is much better to use an existing library for image processing.
You can take a look at CImg . I used it before and found it quick and well documented.
If you are on an AMD machine, I know that there is an optimized library for processing images from AMD, the Framewave Framewave Project .
Also, if you are using MATLAB style code, you can look at it ++ . I think the goal of the project is to make it as similar as possible to MATLAB.
source share