O'Reilly logo

Learning OpenCV 3 Application Development by Samyak Datta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Color histograms in OpenCV

In this chapter so far, we have been working with grayscale images. Let's take a moment to understand the concept of histograms when applied to multichannel color images. For all demonstration purposes in this section, we will be working with the color version of Lena's picture as our input image:

Color histograms in OpenCV

While talking about the transition from grayscale to color images, we have always visualized color images as being composed of three channels of red, green, and blue. We have maintained that all three channels can be treated independently as grayscale images themselves. And this is exactly what we will do in the case of color ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required