Module 1
Downscaling // Grayscaling, HSV Conversion // Thresholding and Adaptive Thresholding
Overview
Our first image processing module will go over how a computer sees images, how image processing works mathematically, and how we can make images easier for the computer to read and analyze. This module mostly focuses on techniques that simplify the image through color and contrast adjustments. We will learn the benefit of techniques such as downscaling, grayscaling, thresholding and adaptive thresholding.
Lecture Slides
Objectives
By the end of Module 1 in the skeleton code, you should have a thresholded grayscale image that looks similar to this:
Skeleton Code
Note that for Modules 1-3, we will be using the same Jupyter notebook for coding as some modules depend on previous results.
In the Module 1 section of the notebook, you will be walked through loading an image with OpenCV, displaying that image, converting that image to different color spaces, and applying thresholds across that image.
Helpful Tips/FAQ
Checkoff Questions
- What are the advantages of using HSV vs Grayscale?
- Why does your HSV converted image look weird?
- What is the benefit of increasing the Gaussian kernel size when adaptive thresholding?