Forums > Jitter

RGB and video circular crop

March 17, 2011 | 4:38 pm

Hi. I’m a newbie. I’m trying to get something like this: http://it.wikipedia.org/wiki/File:RGB.svg

The 3 circles (Red, green, blue) should be replaced with the 3 RGB planes of a single source(realtime webcam). I could use jit.unpack to split the ARGB planes, and then jit.rota or something else, to apply an offset to each plane. But I don’t know how to go on.
Is it possibile to apply a circular crop to each RGB plane?


March 17, 2011 | 5:06 pm

you can use jit.alphablend to mask/crop out a circular area of a matrix.
post a patch showing what you’ve tried, and we can offer more suggestions.


March 17, 2011 | 8:14 pm

Thanks for the answer.

Can I create 3 circular areas with smooth edges, one for each matrix plane, using alphablend?

Here it is. Very basic…

– Pasted Max Patch, click to expand. –

March 18, 2011 | 7:18 pm

in this case i would create masks with something like jit.lcd, and then simply use jit.op @op * to crop out each color plane. take a look at this patch:

– Pasted Max Patch, click to expand. –

June 17, 2011 | 7:13 am

to crop the video u can use this prog – http://geovid.com/VidCrop_PRO/, nice tool!


August 8, 2011 | 10:20 am

there is another great tool for video cropping http://www.geovid.com/VidCrop/, try it


Viewing 6 posts - 1 through 6 (of 6 total)