| Thread Closed |
Lens distortion and surveying |
Share Thread | Thread Tools |
| Sep1-09, 11:34 PM | #1 |
|
|
Lens distortion and surveying
Photography/optical lens distortion/surveying. Please move to appropriate forum.
I wish to survey an area of a friend's backyard using overhead photos. I can get photos from about 25 feet up a TV antenna with a digital SLR that has a 14-42mm lens. The area to be surveyed is 70'x20' and is about 10' from the tower. That makes for a lot of foreshortening. (see diagram). I've done lots of pano / stitch shots before of landscapes and such, but in those cases the correcting for angular disortion wasn't a priority. It was enough that they stitched together seamlessly. In this case, I want to eliminate all angular distortion (using PhotoShop). i.e. a 2'x2' square at the edge of the final image needs to BE a square (not foreshortened into a diamond) and it needs to be the same SIZE as the same square in the centre of the image. I thought I could simply take enough pics and stitch them together, compensating for distortion between pics but (and here is the crux of my problem) I am finding that there is distortion within each pic (I'll call it "intra-pic distortion"). i.e. two squares in the same pic will not be congruent. No matter how much I distort any given pic, I cannot eliminate ditortion at two points simultaneously (if I make one is square, the other will be a diamond and vice versa). How can I fix this? I learned in college that a 50mm lens is nearest human vision. Can I set the lens to 42mm and hopefully eliminate this ... intra-pic distortion? Thoughts? |
| Sep3-09, 06:47 AM | #2 |
|
|
I don't think you need to align the lens to human vision, I think you need to make it as telefoto as possible to minimize distortion (a wide angle lens distorts an image, that's why fashion photogs use telefoto lenses as it stops the models ending up with big noses, which apparantely they dont like)
I would say the combination of stitching more frames of smaller pieces together, and also using a less distorty lens, will help your intra-pic distortion issue. |
| Sep3-09, 07:05 AM | #3 |
|
|
I assume that "50mm lens nearest human vision" is about standard lens focal distance, which is -by definition- equal to the largest diameter of the sensor. For the standard original SLR this would be the square root of 24^2 + 36^2 = 43.3 mm. Most modern DSLR have smaller sensors so the standard lens focal distance would adapt accordingly. Crop factors are 2 for Olympus: Standard focal distance 22 mm 1.6 for Canon: Standard focal distance 27 mm 1.5 for most others including Nikon and Sony: Standard focal distance 29 mm |
| Sep3-09, 08:53 AM | #4 |
|
Recognitions:
|
Lens distortion and surveying |
| Sep8-09, 11:23 AM | #5 |
|
|
Nevermind straight lines: even a perfectly circular beachball will appear greatly elongated along an axis through the centre of the pic. (As a former photo processor, I am too familiar with human heads stretched into ovals near the corners of wide angle pics. Look at the guys in the top right of this pic: http://www.msm.cam.ac.uk/dmg/GroupIn...Photo2008a.jpg) That is not reality, that is lens distortion. 1] It's hard enough to take a few dozen pix while dangling from an antenna. This method would require a hundred or more. But more importantly: 2] I need to have at least three reference marks in each shot so that I can digitally return them to an orthagonal view to stitch them together. At telephoto range, I'd need to place reference marks every foot or so, instead of every five feet as I have them now. That would mean that, instead of laying 60 reference marks in my 70'x20' area, I'd need to lay 1470! |
| Sep8-09, 11:59 AM | #6 |
|
|
Dave,
You are correct that this is a radial distortion...it does not exist for ideal pinhole cameras. Lower quality optics have higher amounts of radial distortion, especially with wide field of view. Typically this is corrected for by calibrating the distortion effects using a reference image that contains known straight lines. Discovering the distortion function can then be posed as a least squares problem to convert the projected curves back into straight lines on the projective plane. See the wiki page. They mention some Photoshop plugins http://en.wikipedia.org/wiki/Distortion_%28optics%29 |
| Sep8-09, 12:29 PM | #7 |
|
|
Not sure if I don't understand. Look at JB's link:
The problem, I think, is the oblique perspective, vertical parallel lines merging towards the floor. Obviously the same happens with the people, heads being much closer than the feet. |
| Sep8-09, 01:19 PM | #8 |
|
|
As André has already suggested: Get a tilt-shift lens; this is what the "professionals" use in situations like these and would solve most of your problems.
Now, they are quite expensive but you should be able to rent one from e.g. a pro-photo shop. |
| Sep8-09, 01:45 PM | #9 |
|
Recognitions:
|
There is a well known model for lens distortions (2 radial terms, 2 tangential, 1 extra for a fisheye) and x+y scale.
See 'learning openCV' chapter 11 - the free opencv library also includes example code to calculate the terms for a given camera+lens using photos of a checkerboard and coe to undistort an image ( there are probably commercial apps that do this) http://books.google.ca/books?id=seAg...age&q=&f=false |
| Sep8-09, 07:57 PM | #10 |
|
|
Here's another one that has none of the vertical foreshortening that's confusing you in that first pic. Look at the shape of the heads of the guys in the top left and (more noticeably) top right corners. http://www.qtp.ufl.edu/~kmmprogs/ima...oup-6-7-06.jpg And here (girl, top left): http://iopenshell.usc.edu/krylovgroup/group-feb2009.jpg And here (girl, top left): http://media.tri-cityherald.com/stat...og/piemain.jpg |
| Sep8-09, 08:19 PM | #11 |
|
|
|
| Sep9-09, 12:18 AM | #12 |
|
|
|
| Sep9-09, 12:39 AM | #13 |
|
|
Now that you mention it, I could set up a calibration card with a grid on it. I simply set the lens to the right zoom, take a pic of the grid, and pull it into PS where I apply the filter. Whatever filter setting corrects the grid back to straight lines is the setting I'll use on every picture... Great idea. Makes me wish I hadn't given the camera back to my brother... |
| Sep14-09, 09:12 AM | #14 |
|
|
Bah! It's not working no matter how I try.
I went back one more time and laid out mason's twine along the entire 70' length of the site: four strands four feet apart. Then went back and marked each strand with tape at four foot intervals, givng me a 4x4 grid of the entire area. Then I took my pics again. Still too much distortion. In PhotoShop, I cannot warp a single photo and get all reference points in the photo to line up to a grid. I think this has to do with the fact that the Perspective filter does its distortion in a more sophisticated way than the more simple Distort filter. I think the Perspective filter does "weighted" foreshortening, whereas Distort does not. Problem is, Perspective filtering is done purely by guesswork. |
| Thread Closed |
| Thread Tools | |
Similar Threads for: Lens distortion and surveying
|
||||
| Thread | Forum | Replies | ||
| surveying scientists' use of computers | General Physics | 0 | ||
| a question of surveying a plat of land | Engineering, Comp Sci, & Technology Homework | 5 | ||
| surveying update | General Engineering | 3 | ||
| Surveying - Measuring the meter. | Science Textbook Discussion | 0 | ||