Login  Register

Re: histogram x-axis

Posted by Oliver Bannach on Feb 29, 2008; 8:35am
URL: http://imagej.273.s1.nabble.com/histogram-x-axis-tp3697053p3697055.html

Thanks to everybody for your perfect help!

Best regards
Oliver

Wayne Rasband schrieb:

>> Dear imageJ experts,
>>
>> I'd like to compare histograms from lots of images. By default, the
>> X-axis of the histogram ranges from the minimal up to the maximal
>> intensity recorded from each image, e.g. image1 9-250, image2
>> 200-7500. So it's quite difficult to visually compare two histograms.
>> Can I manually set the limits to the min (0) and max (7500) for all
>> images?. Any help is appreciated, thank you!
>
> Hold the alt key down when running the Histogram command and you will
> get a dialog box that allows you to specify the x-axis range. Or
> install this macro, which generates a 0-7500 histogram when you press
> 'h'.
>
>   macro "Histogram (0-7500) [h]" {
>      setKeyDown("alt");
>      run("Histogram", "bins=256 x_min=0 x_max=7500 y_max=Auto");
>   }
>
> Add this macro to ImageJ/macros/StartupMacros.txt to have it
> automatically installed when ImageJ starts.
>
> -wayne