RGB and video circular crop

Mar 17, 2011 at 4:38pm

RGB and video circular crop

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?

#55621
Mar 17, 2011 at 5:06pm

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.

#200059
Mar 17, 2011 at 8:14pm

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. –
#200060
Mar 18, 2011 at 7:18pm

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. –
#200061
Jun 17, 2011 at 7:13am

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

#200062
Aug 8, 2011 at 10:20am

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

#200063

You must be logged in to reply to this topic.