On 02/11/2015 11:05 PM, Carl von Einem wrote: >> Am 09.02.2015 um 01:13 schrieb Alex Mandel: >>> So I'm applying a distortion correction using the the lensfun database >>> for my lens and camera parameters. But it occurred to me after the >>> correction, I'm not really sure what the effective focal length, field >>> of view, and crop factor is. This information is important for me as my >>> next step is to stitch panoramas with Hugin and similar tools. >>> >>> How would I calculate the output image parameters, so that I can make a >>> post-corrected fake camera model? > > Is that a real camera / lens setup or do you used some rendered images? > Can you give a more detailed description of your workflow? >
It's a GoPro Hero2, I'm removing barrel distortion from the Fisheye lens which flattens the corners out and the crops the image slightly to remove the really distorted parts. Here's the exact script I use https://github.com/wildintellect/lenscorrection/blob/master/undistort.py The key libraries are lensfunpy and openCV. Maybe this is a question for openCV. Thanks, Alex ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Lensfun-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lensfun-users
