RGB and video circular crop

catta's icon

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?

Rob Ramirez's icon

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.

catta's icon

Thanks for the answer.

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

Max Patch
Copy patch and select New From Clipboard in Max.

Here it is. Very basic...

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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:

karry's icon

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

karry's icon

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