Re: Showing the cumulative histogram of a picture

Posted by jmutterer on
URL: http://imagej.273.s1.nabble.com/Showing-the-cumulative-histogram-of-a-picture-tp3693377p3693378.html

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 <[hidden email]> 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.
>