Hi Jeremy,
assuming that you are writing a macro, you could use getHistogram and then simply loop through the array to find the maximum.
Like this, you can also determine the bin width. Especially for 16-bit or float images, where you might have a rather low number of pixels with any given value, selecting a suitable bin width will suppress noise.
Michael
________________________________________________________________
On Oct 9, 2014, at 11:10, Jeremy Adler wrote:
> Analyse histogram generates the Mode but the Mode is not available from getStatistics().
>
> Could getStatistics() be amended ?
>
> Clearly the mode can extracted by running through the arrays returned by getStatistics() but getting directly would be neater.
> The mode is useful with an image of an object on a background it provides a good indication of the mean background intensity.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html