histogram x-axis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

histogram x-axis

Oliver Bannach
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!

Cheers
Oliver
Reply | Threaded
Open this post in threaded view
|

Re: histogram x-axis

Wayne Rasband
> 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
Reply | Threaded
Open this post in threaded view
|

Re: histogram x-axis

Oliver Bannach
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