Login  Register

Re: I need help with calibrating an image using ImageJ

Posted by HaibaraAi on Oct 18, 2012; 8:33am
URL: http://imagej.273.s1.nabble.com/I-need-help-with-calibrating-an-image-using-ImageJ-tp4999914p5000435.html

Hi!

Thank you for your response! I have a few questions though.

1. What does the desired value correspond to? In my case, like I said, I want to adjust the RGB values of the white patch to RGB value of 243, 243, 242. So what desired value should I put in?

2. Also, I'm not sure how to use the getStatistics command. Could you please link me to a documentation describing how to use this? I've tried searching but I only get descriptions of getStatistics.

3. Lastly, about the last thing that you mentioned, "how to have a
variable in a command such as run("Multiply...", "value=&myFactor");" ... where does that come in? when do I use that?

Thank you very much! It is my first time to use ImageJ and I am so unfamiliar about lots of things. But this is very important to me since I'll be using it to analyze my specimen in my thesis. Again, thank you! :D

On Sat, Sep 22, 2012 at 5:20 PM, Michael Schmid-3 [via ImageJ] <[hidden email]> wrote:
Hi,

first be warned that color calibration is a tricky business, close to
impossible with consumer cameras. Most consumer cameras use a nonlinear
transfer function such as sRGB. Furthermore, pixel value 0 does not
correspond to black. Most consumer cameras increase color saturation
(using 'neutral' color settings may improve this point).
So, you will get only a very rough calibration using the white area of the
color chart.

Assuming that black corresponds to pixel value 0 and that the transfer
curve is linear or a fixed gamma value, what you can do:
- Image>Type>RGB Stack
- For each channel
--- Measure the mean brightness of the white area
--- Process>Math>Multiply by a value calculated as (desired
value)/(measured value of white area). Do it for this channel only, not
for the whole stack.
- Image>Type>RGB Color

You can record these steps with Plugins>Macros>Record and create a macro.
See the ImageJ Macro documentation for details, e.g. the getStatistics
command for getting the mean value in the white area, and how to have a
variable in a command such as run("Multiply...", "value=&myFactor");

Michael
____________________________________________________________________

On Wed, September 19, 2012 12:49, HaibaraAi wrote:
> Oh i see. But do you know how to adjust the RGB value of the picture? For
> example, the RGB value of the white patch in the ColorChecker chart in the
> photo is currently, 255, 255, 240 but you want to adjust it so that it
> would match its real RGB value of 243, 243, 242. THank you! :D
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.n6.nabble.com/I-need-help-with-calibrating-an-image-using-ImageJ-tp4999914p5000161.html
To unsubscribe from I need help with calibrating an image using ImageJ, click here.
NAML