OpenCV Part 2: Image transformation

This tutorial introduces various transformation techniques implemented in OpenCV including color transformation and image transformation.

Color transformation

OpenCV is shipped with over 32 built-in color space conversion. In this tutorial, I will focus on three color spaces: gray, RBG, and HSV.

Grayscale

An OpenCV image in grayscale is simple a 2-D numpy array. Each cell in the 2-D array is a float scalar.


In [ ]: