On Tuesday 28 Aug 2012 17:41:07 you wrote:
> Thanks a lot! Sorry if i didn't clarify very well, I wanted the 95th to
> 100th percentile of values and didn't know what functions could do that.
> What you gave me helped a lot, all I did instead was do
>
> getStatistics(area, mean, min, max, std);
> threshold = 0.95*max;
> setThreshold(threshold, 255);
That is not the 95th to 100th percentile of the *values*, but of the
*maximum*. Not the same thing.
You probably need to integrate the histogram to see what threshold gives you
the 5% of the values to the maximum.
Cheers,
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html