oups, forget to send to list
-------- Message original -------- Sujet: Re: [PD] mean color value of a video grid Date: Thu, 24 Aug 2006 13:27:19 +0200 De: cyrille henry cyrille.henry@la-kitchen.fr Pour: vincent rioux vincent.rioux@no-log.org Références: E92C0114-6601-4E4D-BAE3-EE1CD9FB778B@parisgraphics.com 44ECB1AA.7060502@goto10.org A6D82692-79FE-46B7-A516-9A02E72E0F75@parisgraphics.com 44ECF228.4010802@goto10.org 461640B5-9633-4346-9A8A-9E5337B56334@parisgraphics.com 44ED824F.40502@no-log.org
hello,
i think (but not tested) pix_resize should give better result.
pix_video pix_resize 8 8 pix_mean_color
cyrille
vincent rioux a écrit :
Dear list, I am searching for a solution to this problem :
- given that a video stream - grey scale - is divided in say 8
rectangles-zones constituting a grid.
- compute a time-varying mean value (over space) of the degree of
illumination (or shading) of each zone.
i am right now thinking of a combination of :
pix_video (to read a stream from a webcam e.g.) 8 pix_crop (to divide the image) pix_snap to take a snapshot as a picture. pix_mean_color to compute the mean value.
This should work but i am may be missing some more direct way of doing this... Moreover would it be possible to compute these values on a more complex shape than a rectangle?
as one can see, i will probably use Gem as it's the easiest to run and install on osx but i wonder if it won't be easier or more straightforward to code with gridflow or pdp?
vincent
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list