Opencv Mat
OpenCV has been around since 2001. In those days the library was built around a C interface and to store the image in the memory they used a C structure called IplImage C interface Store image IplImage Memory leakage issues. Memory leakage issues over come by C++ Luckily C++ came around and introduced the concept of classes making easier for the user through automatic memory management https://docs.opencv.org/2.4/doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.html