Re: get 3 max and min values

Posted by danibodor on
URL: http://imagej.273.s1.nabble.com/get-3-max-and-min-values-tp3692913p3692917.html

yes, but this doesnt really work well for 16 bit images. and i don't want to compress the data to 8bit.

any other suggestions?


Gluender-2 wrote
>I know that you can get the max and min of a selection with the
>getMinAndMax function (or getStatistics). Is there a way to get e.g.
>the 3 maximum or minimum values. I was searching for a function to
>list all the values in a selection, and then sorting those and
>getting X maximal or minimal values. However, I cannot find a way of
>listing all the values in my selection. Also, I don't know if it
>possible to then easily sort them to get the highest values.
>
>Can anyone help me?
>
>Thanks!
>--
>View this message in context:
>http://n2.nabble.com/get-3-max-and-min-values-tp2640330p2640330.html
>Sent from the ImageJ mailing list archive at Nabble.com.

With 8 bit images you may use
getHistogram(values, counts, nBins[, histMin, histMax])

HTH
--

                   Herbie

          ------------------------
          <http://www.gluender.de>