Yes... you&#39;re completely right Mathieu...<br>I&#39;ve made a bad link between his question and my pix_knowledge (maybe because it was 1h30 AM :-p )<br><br>Cheers.<br><br>01ivier <br><br><br><div class="gmail_quote">2011/9/11 Mathieu Bouchard <span dir="ltr">&lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Sun, 11 Sep 2011, Olivier B wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I think [pix_mean_color] is what you need.<br>
</blockquote>
<br></div>
This only finds the average colour, which is usually not the same as the most prevalent colour, even though it is the best estimator.<br>
<br>
The best estimator means that it&#39;s your best guess when someone asks you to predict pixels picked randomly in the image. It leads to least square error : (predicated - random)² is as low as it can be, on the long term.<br>

<br>
In statistics, we learn about Average, Median and Mode, usually all 3 at once, as 3 basic approaches, three kinds of «middles» of the data. What Sebastian is looking for is more like Mode, which looks like the easiest of the 3, but is actually the hardest of the 3, especially when doing in multidimension spaces (such as red,green,blue) and on continuous scales (256 values per dimension is continuous enough for what I&#39;m talking about).<br>

<br>
There are several gotchas about peaks in statistical distributions.<div><div></div><div class="h5"><br>
<br>
 ______________________________<u></u>______________________________<u></u>___________<br>
| Mathieu Bouchard ---- tél: <a href="tel:%2B1.514.383.3801" value="+15143833801" target="_blank">+1.514.383.3801</a> ---- Villeray, Montréal, QC<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Envie de tisser ?<br><a href="http://yamatierea.org/papatchs/" target="_blank">http://yamatierea.org/papatchs/</a><br><br>