In this chapter, we provided a deeper view of the color spaces used in OpenCV and showed you how to convert between them using the
cvtColor function. Furthermore, the possibilities of image processing using different color models and the importance of selecting the correct color space considering the operations we need to make was highlighted. To this end, color-space-based segmentation and color-transfer methods were implemented.
The next chapter will cover image-processing techniques used for video or a sequence of images. We will see how to implement video stabilization, superresolution, and stitching algorithms with OpenCV.