# Photoshop General Discussion

Currently Being Moderated

## Histogram RGB Definition

### Mar 9, 2013 7:49 AM

Tags:

I know that the histogram show the distribution of the piex in the R value, G value and B value. The x-axis indicate the value of the pixel while the y-axis indicate the amount of the pixel. e.g. The R channel is 8-bit grey-scale image and the range of its color is from 0 to 255. So do the G channel and B channel. The larger the value of pixel is, the more the pixel is distributed in the right side in the histogram. e.g. Ra = 0 while Rb=255, then pixel a and b are distributed respectively at the location of 0 and 255 (x = 0 and x=255). It is easy to understand.

But what about the histogram of RGB Compound Channel?

How to define the the distribution of the pixels with the R, G, B value in the histogram of RGB？

For example, pixel A is RGB(255,0,0) while pixel B is RGB(0,255,0) and how to distribute the two pixel in the histogram of RGB?

In order to make it out, I paint some pure color in the canvas and obverse the histogram carefully. But I feel really puzzled and can't find the relationship between the histograms of RGB compound channel and the R, G, B split channels.

Can you tell me why? Thanks very much.

Replies
• Currently Being Moderated
Mar 9, 2013 8:06 AM   in reply to MikeBarret

For example, pixel A is RGB(255,0,0) while pixel B is RGB(0,255,0) and how to distribute the two pixel in the histogram of RGB?

The pixel is not being represented as such, the RGB histogram is just the result of the three channel histograms.

For the RGB histogram it is irrelevant if there are three pixels of 0/0/255, 0/255/0, 255/0/0 respectively or one pixel with 255/255/255 and two with 0/0/0 – the influence is the same.

Two images looking quite different can have the same RGB histogramm.

I hope I understood correctly what your issue was, though …

|
Mark as:
• 6,017 posts
Jan 9, 2006
Currently Being Moderated
Mar 9, 2013 10:40 AM   in reply to MikeBarret

You may also want to expand the histogram view and use the pull-down to see all the channels.  You see it list six channels I actually think its more like four Red Green Blue and Luminosity for when you control Click on the RGB channel the selection that you get is called the luminosity selection.

|
Mark as:
• Currently Being Moderated
Mar 10, 2013 9:35 AM   in reply to MikeBarret

In this example of a file of 1000px x 1000px (so 1000000 pixels as indicated) an area of 500px x 1000px and the color 128/0/0 gets a Count for 128 of 500000; the same area with 128/128/128 gets a count for 128 of 1000000.

So the 128 numbers of the two Channels simply get added.

(255 gets a count of 1500000 incidentally.)

Edit: In the RGB Histogram that is!

And I just noticed that the document’s histogram as addressed via Script is the composite histogram, not the RGB histogram.

|
Mark as:
• 6,017 posts
Jan 9, 2006
Currently Being Moderated
Mar 10, 2013 9:59 AM   in reply to MikeBarret

First the image you show may be showing wrong numbers as indicated by the triangle with the ! in it you need to click on it to update the cache data.  Also I think what you want to look at is the info palette. As you move the cursor over the image it will give you a readout of the R G and B of the spot the pointer is over you can also set it to show values of other mode values like lab. The histogram is just number count of pixels knowing the contents of the image seeing the shape of the histogram may help you with you exposures especially coupled by blinking exposure problem area in camera image previews.  Many an image may have odd looking histogram depending on color content, exposure  and lighting

|
Mark as:
Actions

#### More Like This

• Retrieving data ...

#### Answers + Points = Status

• 10 points awarded for Correct Answers