Pixel Counting and Color Statistics – Part 1

Gathering Information from Color In this article I would like to further explore what you can do with OpenCV by analyzing how often certain colors appear and in what proportions they are to be found in different types of images. I will also introduce the concept of histograms and go through some interesting applications. Histograms naturally link image processing to…


Understanding an Image

Grid-like representation A 2D image can be represented as a rectangular grid, composed of many square cells, called pixels. How do these pixels look like? Just try to imagine a chessboard: Just like the black and white squares on the chessboard, pixels are nicely aligned in straight lines, both horizontally and vertically. We will refer to the horizontal ones as…