Topic: A histogram is a graph containing the cumulative intensity of every pixel value in an image. It is a tool of great importance in image analysis and colour monitoring, as any changes in, say, brightness or contrast, are immediately noticeable in the histogram.
Exercise: Create a Python script file and perform the following tasks:
- Import the os, OpenCV, SKVideo, numpy, and matplotlib.pyplot libraries.
- Open a video stream.
- Isolate the values of each colour channel for every frame.
- Generate the histograms for each colour channel using the isolated values for each frame, save the histograms and present them alongside the original video.
Instructions and Material for solution: Click File to download the exercise material.
Expected results histogram.
Lecture for better understanding:https://icarus.csd.auth.gr/digital-image-processing/
This exercise was developed by A. Christidis.
————————————————————————————————————–
For the solutions to the exercises, please contact koroniioanna@csd.auth.gr