Monday 23 December 2019

post processing - Are there any tools out there to automatically level an image?


I am wondering if there are any tools (standalone, Lightroom/Photoshop plugins, or other) that can take a photo, look for lines that are almost vertical or horizontal (eg horizons, telephone poles, etc), and automatically rotate and crop the image?


This is a manual process for me right now, and it seems like something that could be automated.


Does anything like this exist?



Answer



There may well be programs that attempt to do what you describe, but I'm doubtful it would be that effective. If the camera is pitched up or down slightly then you could have a perfectly level image, despite not having a single horizontal or vertical line.


The reason for this is that unless your camera is dead flat along the optical axis (that runs parallel to the lens) then your telegraph poles etc. won't be vertical in an image, even if the camera is level - the lines will all converge on an imaginary vanishing point in the sky. Likewise, if the camera is not face on to a true horizontal line it won't be rendered horizontal in the image.


It's possible to employ a more sophisticated approach, by either trying to identify the horizon in images, or even better grouping lines that share a common vanishing point, estimating the pitch angle and thus the correct angle to rotate the image, but such a process would be considerably more involved.



No comments:

Post a Comment

Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...