I've updated my fish-eye effect code with added comments. The effect is based on Jason Waltman's work, which in turn references a paper by Devernay and Faugeras on correcting distorted images. The paper details a method for determining distortion and converting images to a standard pinhole camera model. My code produces the desired fish-eye effect, and I've provided the C# source code for download. While I haven't fully delved into the paper, it seems to offer more in-depth analysis of image distortion correction.
I successfully implemented a fish eye effect! I peeked at Jason Waltman's code for inspiration and adapted it to C# using the Tiger Image Processing Library. Now I even understand polar coordinates better. It involves converting Cartesian (x,y) coordinates to angles and distances from the center of a circle. The effect itself figures out which pixels need distorting and then calculates their new positions.
In this second part of my series on image processing, I'm exploring the Tiger Imaging Library for C#, a cool resource with complete source code and various image manipulation filters. I'm considering expanding its capabilities by creating new filters like the fish eye effect described by Jason Waltman. I'm also planning further research and experimentation with Tiger Imaging.