Panoramic photos & horizon detection
One side effect of buying a new camera (Panasonic FZ40 to replace a Canon S3) is I've rekindled my interest in panoramic photos. Using Hugin (free software) a series of overlapping photos can be assembled into one giant image. Doing this requires identifying "control points" which either link to photos together (i.e. this white dot on photo 1 is the same as this white dot on photo 2) or identify horizontal, vertical or straight lines. With enough control points, the software can determine the direction the camera was pointing, correct pitch and roll, and even adjust for less than perfect camera lenses or handheld photos.
Some of the photos I want to assemble look out at the ocean horizon. So I want to be able to add control points which identify the horizon as a straight and horizontal line across multiple photos. Thus I want to make those control points as accurate as possible. Right now I'm doing some research into edge/horizon detection, and playing around with some of my own ideas. What I want to be able to do is to build a utility which will load a JPEG and identify the horizon Y coordinates across the entire photo to sub-pixel accuracy.
3 Comments
Recommended Comments