Re: [PD] Isolating RGB colours in GEM
On Sat, 22 May 2010, Ryan Trigg wrote: I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. [pix_colormatrix] is very good for that stuff. Optionally you can combine it with [pix_threshold] or others. [pix_colormatrix] allows you, for example, to do things like new_red = old_red - old_green - old_blue, in order to identify redness in a way that excludes yellow, purple and white. You'd make a column with constants 1, -1, -1. For singling out other colors you would use those numbers in a different order, or the numbers 1, 1, -2 in any order (for secondary colors), or any other combination (for finding other colors). _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Isolating RGB colours in GEM
I made this object a while ago to track red and blue, but it can be extended to track other pure colors: http://www.jaimeoliver.pe/archives/645 best, J On Sun, May 23, 2010 at 1:00 PM, Mathieu Bouchard ma...@artengine.cawrote: On Sat, 22 May 2010, Ryan Trigg wrote: I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. [pix_colormatrix] is very good for that stuff. Optionally you can combine it with [pix_threshold] or others. [pix_colormatrix] allows you, for example, to do things like new_red = old_red - old_green - old_blue, in order to identify redness in a way that excludes yellow, purple and white. You'd make a column with constants 1, -1, -1. For singling out other colors you would use those numbers in a different order, or the numbers 1, 1, -2 in any order (for secondary colors), or any other combination (for finding other colors). _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Jaime E Oliver LR www.jaimeoliver.pe 858 750 0924 (cel) 858 202 1522 (home) 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Isolating RGB colours in GEM
Thanks for your help everyone, looks like I'm going to go with pix_opencv_colofilt, it appears to do exactly what I need. Cheers! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Isolating RGB colours in GEM
I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Isolating RGB colours in GEM
Is [pix_threshold] what you want? On Sat, May 22, 2010 at 10:48 AM, Ryan Trigg ryan.tr...@gmail.com wrote: I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- William Brent www.williambrent.com “Great minds flock together” Conflations: conversational idiom for the 21st century www.conflations.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Isolating RGB colours in GEM
Ryan Trigg wrote: I am currently trying to find a way to isolate a colour in a live video stream. For example, if I chose red, any object in the video that does not contain red (above a certain threshold) would be black. Does such an object exist in GEM? Thanks for your help. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-YOU you can try pix_opencv_colorfilt or pdp_opencv_colorfilt and they are not in pd-extended, you got to install them from here : http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv mainly, well supported on ubuntutu ( like desmond tutu ) salaaam, sevy ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list