Controlling range/scale on histograms
Posted by Jeff Brandenburg on Aug 03, 2005; 8:12pm
URL: http://imagej.273.s1.nabble.com/Controlling-range-scale-on-histograms-tp3705101.html
Hi, all --
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. I can do that if I'm
working with 32-bit images, but not with 16-bit images.
I've fiddled a bit with the Histogram code, but when I activate the
range dialog, I still get a histogram that's scaled between the minimum
and maximum values actually present in the data -- the min and max that
I specify are ignored. I've traced through the code a bit to try to
figure out what's happening, but I get lost pretty quickly.
Has anyone else managed (or even tried) to do this? Am I missing
something obvious?
Thanks in advance...
--
-jeffB (Jeff Brandenburg, Duke Center for In-Vivo Microscopy)