Hi, snibgo.
snibgo wrote:Photographing an interior wall, flat-on to that wall, in a rectangular room, is easy:
1. Put camera on a tripod, pointing towards the wall.
2. Measure the height of the centre-line of the lens above the floor.
3. Measure the horizontal distance from the centre-line of the lens to the wall on the left (or right).
4. Walk to the other end of the room, where the camera is pointing.
5. Put a mark on the wall at the same height, and same distance from the wall on the left (or right).
6. Adjust the camera angles to put the mark in the centre of the viewfinder.
Thank you for diagramming of these steps. Sorry, but I'm not sure I understand what you mentioned in paragraphs 3 and 5. When you say "measure the horizontal distance from the centre-line of the lens to the wall on the left (or right)", do you mean to measuring the horizontal distance between the vertical axis passing through the lens and the wall on the left (or right) of the camera, then carry that distance at the same height of the horizontal axis of the camera on the wall to which the camera is pointed, and then to position the camera so that "cross" stays in the center of the viewfilder? If I understood correctly, then I would have to make sure that distance is measured with an instrument which ensure horizontality and perpendicularity with respect to the side wall.
snibgo wrote:
DanielB wrote:For the correction I used A, B and C in Hugin, but not D. Do you think that using D could improve the correction?
Is your corrected image from Hugin or IM? If IM, what was the command?
I calculated the values of "a", "b" and "c" using Hugin. The values obtained were: a = -0.026, b = 0.02, and c = 0.001 Then I used the following syntax with ImageMagic:
Code: Select all
$ convert 20160523_131515-rotated -distort barrel.jpg "-0.026 0.02 0.001" 20160523_131515-rotated-processed.jpg
This is the procedure I have been always using.
A side question: when loading the image in Hugin, it asks for focal length but I'm not sure what value should be used here or if this value influences the result of the transformation. I have examined the EXIF metadata of the photo (taken using uvccapture 0.5-3+b1 on Debian GNU/Linux), but I did not find anything there regarding the focal length.
Thanks for your reply and your time.
Kind regards,
Daniel