[PD] mean color value of a video grid
Mathieu Bouchard
matju at artengine.ca
Fri Sep 1 18:47:26 CEST 2006
On Fri, 1 Sep 2006, Mathieu Bouchard wrote:
> On Fri, 1 Sep 2006, vincent rioux wrote:
>> i was refering to a possibly non-rectangular shape. i am not used to
>> gridflow but i would guess that it is possible to take the mean color over
>> a group of pixels.
actually the fastest way to do this in GridFlow is to use [#store]. This
one is hard to beat. You put your image in the [#store], then you recall
areas of it by sending a list of positions (a N-by-2 grid) and you will
get a list of RGB pixels (a N-by-3 grid), which you can then average by
using [#fold + (0 0 0)] and [# /].
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-list
mailing list