MATLAB Answers


RGB range for an image

Does the R,G,B range varies for the image taken with different cameras. Suppose I capture an image with blackberry and I capture the same image with a digital camera; would the RGB range vary for the image in both scenarios or would it be the same.


Log in to comment.

2 Answers

Answer by Image Analyst
on 15 Feb 2013
 Accepted Answer

Of course it does. Different cameras have different spectral responisivities, different exposures, different gammas, different algorithms they apply to "improve" the image for you, etc. Don't think that if you take a photo of, say, the x-rite Color Checker Chart (a standard color calibration target), that you will get the nominal sRGB values out. You most certainly will not. Not from your camera or any other camera. You'd need to do a color calibration to post process the image if the sRGB image is what you wanted because all cameras are different.

Additional Training:



Show 1 older comment

You either have to have an algorithm that is robust enough to handle different color gamuts and still get the main job done, or you have to calibrate your system by having a known color calibration target in your scene. For example, if I have to find a red spot on a green background, I can probably do a pretty good job of that despite the fact that the image doesn't have exactly the same colors from every camera.

Are there any effective color calibration techniques in matlab.

No, nothing built in. You have to know what to do (for example cross channel polynomial regression between desired RGB and actual RGB), and do the steps yourself (for example, with polyfit).

Log in to comment.

Answer by Walter Roberson
on 15 Feb 2013

The sensitivity of different devices varies. And their gammas will possibly differ.

This starts getting into color theory. You can start to see the complexities if you read about a standard designed to work around these problems,


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today