We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › Applying convex filters to the capture stream..
Page Index Toggle Pages: 1
Applying convex filters to the capture stream.. (Read 955 times)
Applying convex filters to the capture stream..
Oct 3rd, 2007, 10:29am
 
Hey Everyone,

I was trying to apply some image filters on the incoming capture stream. Specifically, I wanted to apply convex (fisheye) / concave filters to emulate these mirrors using processing. Google wasn't very helpful. Nor were the searches on the searches on these forums. Any ideas on how I could go about it? Any input would be really helpful.

I see two ways in which I could do this. Apply filters to individual frames from the stream. Render each frame on a sphere of adjusted radius (SurfaceLib). The latter one is pretty involved and this needs to be a quick job. Pour in any other suggestion that you have.

Thanks,
demaws
Re: Applying convex filters to the capture stream.
Reply #1 - Oct 17th, 2007, 12:40pm
 
I did some quick googling and found this example implementation of a fisheye effect:
http://www.jasonwaltman.com/thesis/filter-fisheye.html

It uses polar coordinates instead of cartesian ("normal"), so you might have to read up on that too ...

http://en.wikipedia.org/wiki/Polar_coordinates#Converting_between_polar_and_Cartesian_coordinates

Smiley Hope this helps
Page Index Toggle Pages: 1