So far, you have learnt in detail about the
Mat class, what it represents, how to initialize instances of the
Mat class, and the different ways to create Mat objects. Along the way, we have also looked at some other OpenCV classes, such as
Rect. We have also successfully run our very first OpenCV Hello World program. Our sample program was fairly simplistic. It read an image from disk and loaded the contents into a Mat object. The real fun begins after this. In any application that you develop, you would typically be reading an image or images from a storage disk into your code and then apply image processing or computer vision algorithms to them. In this section, we will take our first steps towards starting ...