How do you find the saturation of an image?

How do you find the saturation of an image?

Saturation is calculated using something similar to: S = [(MaxColor – MinColor) / (MaxColor + MinColor)] (with a 255 ceiling limit) where MaxColor is the highest value of (R, G, B) and MinColor is the lowest of (R, G, B).

How is color saturation measured?

Saturation. The saturation of a color is determined by a combination of light intensity and how much it is distributed across the spectrum of different wavelengths. The purest (most saturated) color is achieved by using just one wavelength at a high intensity, such as in laser light.

What means colorfulness?

1. Full of color; abounding in colors: colorful leaves in the fall. 2. Characterized by rich variety; vividly distinctive: colorful language. col′or·ful·ly adv.

What is an unsaturated color?

When a pure, vivid, strong shade of red is mixed with a variable amount of white, weaker or paler reds are produced, each having the same hue but a different saturation. These paler colours are called unsaturated colours.

Is Chroma a color?

Chroma is the departure degree of a color from the neutral color of the same value. Colors of low chroma are sometimes called “weak,” while those of high chroma (as shown in figure 3) are said to be “highly saturated,” “strong,” or “vivid.”

Is colorfulness a real word?

Colorfulness is the degree of difference between a color and gray. Though this general concept is intuitive, terms such as chroma, saturation, purity, and intensity are often used without great precision, and even when well-defined depend greatly on the specific color model in use.

How to calculate the colorfulness of an image?

In the first equation, is the difference of the Red channel and the Green channel. In the second equation, is represents half of the sum of the Red and Green channels minus the Blue channel. Next, the standard deviation () and mean () are computed before calculating the final colorfulness metric, .

How to compute the colorfulness of an image in Python?

Import our necessary Python packages. Parse our command line arguments. Loop through all images in our dataset and compute the corresponding colorfulness metric. Sort the images based on their colorfulness. Display the “most colorful” and “least colorful” images in a montage.

How can I sort an image by color?

By giving each image a “colorfulness” amount, I can sort my images according to their color.

How to create most colorful and least colorful montages?

A most-colorful and least-colorful montage are each built on Lines 64 and 65. Here we indicate that all images in the montage will be resized to 128 x 128 and there will be 5 columns by 5 rows of images. Now that we have assembled the montages, we will display each on the screen.