Algorithmic correction of fisheye lens distortion, written in the style of a NetPBM graphics tool.
It takes no command-line arguments, and reads the image from from stdin. As with NetPBM-style utilities, you will likely need to combine other utilities to convert to/from the ppm format or do any additional image processing steps that you require.
jpegtopnm capture.jpg | defish-ppm | pnmtojpeg defish.jpg