Re: Macro for subtracting values
Posted by Gabriel Landini on Oct 30, 2008; 9:13am
URL: http://imagej.273.s1.nabble.com/Macro-for-subtracting-values-tp3694631p3694634.html
On Thursday 30 October 2008 03:00:02 Yasushi Sato wrote:
> Hello, Gabriel
> Thank you very much for introducing the methods for subtracting the
> background of light microscope. I will study the methods.
>
> Still, I would like to know the macro how to subtract "mode" of
> histogram from the image.
> Could you show me the example of the macro?
Find the mode via the histogram :
getHistogram(values, counts, nBins[, histMin, histMax])
and use the Math Subtract function to subtract that value.
But I doubt that it will do what you want, no microscope I know of produces
flat bright fields, so you just get an offset greyscale image.
And what do you do when you have multimodal histograms?
Regards
G.