We have talked quite a bit over the past two modules about color systems and how they are important to image processing and comprehension. Color systems are vital to the presentation of an image, as they control how each pixel is stored in the computer’s memory. This activity is intended to introduce you to the most commonly seen color systems, and lets you explore the fundamental concepts of color transformations in Python.
Explain common color systems and how they are structured.
Understand how color systems are important to processing an image and obtaining pixel values.
Experience transforming an image through multiple color transformations.
Access to a computer and large screen (if you want share with others)
A Google account to access Google Colab
A pen or pencil
Color Plane - The pixel value matrix containing pixel data for the respective colors/layers in an image. As an example, the red color plane of an RGB image has the red intensity values of each pixel in an image.
Color systems are composed of three planes which determine each pixel’s display and output. Some color systems have three color planes combined to create a composite color for each pixel. On the other hand, there are color systems that have planes that determine various properties of the pixel such as saturation and brightness. Depending on the software or library being used, you will be utilizing a variety of color systems. For example, the OpenCV library uses the BGR color system by default, and displays images using only BGR. This concept is further shown in the Color Systems and Transformations - Handout and Color Systems and Transformations - Colab Notebook. Another example is that of photo editing software, which tend to use the HLS or HSV values more often than RGB or BGR.
Read and run through the Color Systems and Transformations - Google Colab notebook and the Color Systems and Transformations - Handout. This notebook consists of demonstrations and explanations of the most common color systems:
RGB, grayscale, HSV, HLS, YCrCb
Work through the Color Systems and Transformations - Knowledge Assessment, you will need the Google Colab notebook.
There are multitudes of available resources to assist in furthering your understanding of the concepts presented in this activity. The resources listed below are here to help you get started.