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

2011-09-12 Thread Roman Haefeli
On Sat, 2011-09-10 at 22:33 -0400, Mathieu Bouchard wrote: 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

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

2011-09-12 Thread Mathieu Bouchard
On Mon, 12 Sep 2011, Roman Haefeli wrote: Am I right in thinking, that the Mode would detect the minor part (with all the exact same color values) as the most prevalent color, [...] How would an algorithm work, that would take into account that all the pixels from the major part are very

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

2011-09-11 Thread Olivier B
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 ma...@artengine.ca On Sun, 11 Sep 2011, Olivier B wrote: I think [pix_mean_color] is what you need.

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

2011-09-10 Thread Sebastian Valenzuela
I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I would then call on these numbers to determine the triggering of samples. Is there an object in Pure Data that can determine the

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

2011-09-10 Thread Olivier B
Hi, I think [pix_mean_color] is what you need. Cheers. 01ivier 2011/9/11 Sebastian Valenzuela svalenzuelamu...@gmail.com I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I

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

2011-09-10 Thread Mathieu Bouchard
On Sat, 10 Sep 2011, Sebastian Valenzuela wrote: I am in the process of writing an algorithmic piece where I take pictures, determine the most prevalent color in that picture, then store that as a number in an array. I would then call on these numbers to determine the triggering of samples.

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

2011-09-10 Thread Mathieu Bouchard
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