Login  Register

Re: Controlling range/scale on histograms

Posted by Wayne Rasband on Aug 04, 2005; 3:49pm
URL: http://imagej.273.s1.nabble.com/Controlling-range-scale-on-histograms-tp3705101p3705102.html

> I'm trying to set up a macro that allows a user to compare
> histograms for the same ROI in multiple (16-bit signed or
> unsigned) stacks.  It's easy enough to use ROI manager to
> stamp the same ROI onto multiple stacks, but I can't find a
> way to normalize the resulting histograms to the same scale.
>
> I'd like to just set the min and max for the histogram
> (say, 0 to 32767), and use that same range repeatably.

The CustomHistogram macro at

     http://rsb.info.nih.gov/ij/macros/CustomHistogram.txt

does this.

-wayne