Showing the cumulative histogram of a picture

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

Showing the cumulative histogram of a picture

Tafsen
Is there a function that does this, or does I have to write my own plugin or macro for this? :)

-Stian
Reply | Threaded
Open this post in threaded view
|

Re: Showing the cumulative histogram of a picture

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

Re: Showing the cumulative histogram of a picture

Tafsen

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 :)