Login  Register

Re: Showing the cumulative histogram of a picture

Posted by Tafsen on Mar 11, 2009; 12:50pm
URL: http://imagej.273.s1.nabble.com/Showing-the-cumulative-histogram-of-a-picture-tp3693377p3693379.html


jerome mutterer-2 wrote
Dear Stian,

This macro will plot a simple cumulative histogram:

// Cumulative Histogram
getRawStatistics(area, mean, min, max, std, h);
for (i=1;i< h.length;i++)  h[i] = h[i-1]+h[i] ;
Plot.create("Cumulative Histogram of "+getTitle, "Value", "Sum of pixel
count", h);
Plot.show();
// end

Sincerely,

Jerome.

On Mon, Mar 9, 2009 at 1:02 PM, Tafsen <stian.n@gmail.com> wrote:

> Is there a function that does this, or does I have to write my own plugin
> or
> macro for this? :)
>
> -Stian
> --
> View this message in context:
> http://n2.nabble.com/Showing-the-cumulative-histogram-of-a-picture-tp2448562p2448562.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
Cheers mate :)