Re: Percentile value

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Percentile-value-tp3690983p3690990.html

On Tuesday 29 September 2009  15:30:07 Jan Eglinger wrote:
> Is there an easy way to limit that array to the thresholded pixels or to
> an ROI only?

Isn't this just a matter of integrating the histogram?
Depending on the definition of "easy", the easy way might be to use the macro
language.

If you know the threshold, then just add bins that are above (or below) it.
If you do not know the threshold and the thresholded area is white, you can
AND the original and the binary threshold image, get the histogram and count
for bins>0 (or <255, depending the image polarity).

For restricting the histogram to an ROI: set the ROI, get the histogram and
count.

> Or is there even a chance to integrate an option "percentile" into the
> "Set Measurements..." dialog, together with a parameter telling which
> percentile (0.01-0.99)?

That is not currently possible, as far as I know.
I hope this helps,
G.