Login  Register

Re: Macro for subtracting values

Posted by Gabriel Landini on Oct 29, 2008; 1:26pm
URL: http://imagej.273.s1.nabble.com/Macro-for-subtracting-values-tp3694631p3694632.html

On Wednesday 29 October 2008 12:55:13 Yasushi Sato wrote:

> Dear ImageJ experts,
>
> I would like to use a macro for subtracting background of light microscope
> color image for measuring the gray value of interested area.
>
> run("8-bit");
> run("Invert");
> run("Histogram");
>
> Then I hope to subtract "mode" of histogram from the image.
> Alternatively, I hope to subtract the minimum gray value in the peaks in
> histogram from the image.
>
> However I am a beginner of ImageJ macro.
>
> Could anyone show me the example of the two macros?

There are several ways of subtracting background:
Have a look here:

http://imagejdocu.tudor.lu/doku.php?id=howto:working:how_to_correct_background_illumination_in_brightfield_microscopy

G.