[PD] Can GEM select a color from an image?

Olivier B lamouraupeuple at gmail.com
Sun Sep 11 11:35:25 CEST 2011


Yes... you're completely right Mathieu...
I've made a bad link between his question and my pix_knowledge (maybe
because it was 1h30 AM :-p )

Cheers.

01ivier


2011/9/11 Mathieu Bouchard <matju at artengine.ca>

> On Sun, 11 Sep 2011, Olivier B wrote:
>
>  I think [pix_mean_color] is what you need.
>>
>
> This only finds the average colour, which is usually not the same as the
> most prevalent colour, even though it is the best estimator.
>
> The best estimator means that it'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.
>
> 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'm talking about).
>
> There are several gotchas about peaks in statistical distributions.
>
>
>  ______________________________**______________________________**
> ___________
> | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
>



-- 
Envie de tisser ?
http://yamatierea.org/papatchs/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110911/2acb061d/attachment.htm>


More information about the Pd-list mailing list