Plot a histogram with specific fixed bin width

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

Plot a histogram with specific fixed bin width

Kai Schleicher
I have a 32-bit image stack of which I wish to create a histogram. This
work well by simply using

|run("Histogram", "bins=256 use y_max=Auto stack");|

However, I wish to fix the bin width to a certain value. By default I
believe its set to (min-max)/nBins, but I would like to fix it to a
specific value.Is there a way to integrate that in a macro?

Thanks and cheers,
Kai

--
>>Please note my NEW PHONE NUMBERS: +41 61 207 57 31 (direct) +41 61 207 22 50 (central)<<
Kai Schleicher, PhD | Research Associate in Advanced Light Microscopy | Biozentrum, University of Basel | Klingelbergstrasse 50/70 | CH-4056 Basel |
Phone: +41 61 207 57 31 (direct) +41 61 207 22 50 (central) | [hidden email] | www.biozentrum.unibas.ch | www.microscopynetwork.unibas.ch


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Plot a histogram with specific fixed bin width

Herbie
This is a cross-post from the forum and in my opinion the answer can be
found there.

<http://forum.imagej.net/t/plot-a-histogram-of-specific-bin-width/6116/5>

Best

Herbie


Am 13.07.17 um 20:18 schrieb Kai Schleicher:

> I have a 32-bit image stack of which I wish to create a histogram. This
> work well by simply using
>
> |run("Histogram", "bins=256 use y_max=Auto stack");|
>
> However, I wish to fix the bin width to a certain value. By default I
> believe its set to (min-max)/nBins, but I would like to fix it to a
> specific value.Is there a way to integrate that in a macro?
>
> Thanks and cheers,
> Kai
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html