Re: dummy question about "median"
Posted by
dscho on
Dec 14, 2006; 2:10pm
URL: http://imagej.273.s1.nabble.com/dummy-question-about-median-tp3700824p3700827.html
Hi,
On Thu, 14 Dec 2006,
[hidden email] wrote:
> I've a little doubt about median of an rgb image. Could anybody explain
> me why in next fragment of code "median1" is different from "median2",
> while "stnd.Dev1" and "mean1" are respective the same of "stnd.Dev2" and
> "mean2"?
My gut feeling is that one of the two handles the pixels as a Double
instead of a triplet of bytes.
But then, I really do not know what the median of a color is. The
definition of the median is:
1. sort the values into a list
2. pick the value with the middle index
But how do you sort colors? Is green smaller than blue or larger?
Ciao,
Dscho