Crop and FOV issue with circular fisheye
I'm trying to get Hugin to convert a single circular fisheye (Yasuhara Madoka on M43) image to Equirectangular and I am having some issues with the cropping / FOV. When using calculated lens parameters, Hugin always results in a narrower FOV output image than it should. Here are my steps:
1. Load a set of 10 images from a rotated panorama
2. Cropped to the circle bounds of the image, selected Circular fisheye and 180 degrees as lens type/FOV, selected Equirectangular projection with a 360x180 output FOV.
3. Generated control points and optimized
4. Saved resulting lens parameters to the database/file (the calculated FOV was 162.8 which felt a bit wrong...)
5. Output 360x180 Equirectangular panorama
6. Noted that the resulting vertical FOV is much narrower than it should be.
To try to narrow down things a bit I did the following:
1. Create new Hugin project and loaded a single image from that original set of 10
2. Loaded previous saved lens parameters, cropped to the circle bounds of the image, selected Circular fisheye and 180 degrees as lens type/FOV, selected Equirectangular projection with a 180x180 output FOV.
3. In both the Panorama Preview and actual rendered output you can see a narrower FOV than should be.
Then I tried just playing around with the crop tool in Hugin, but regardless of setting the crop circle larger than it should be (including the black regions) or setting it to the proper size, Hugin always gives me the same incorrectly cropped output image. If I make the crop circle much smaller than it should be, then the output image does correspond to the crop.
I have noticed that if I reset my lens parameters Hugin will output a more correct cropping. However, it still doesn't fill the frame of a 180x180 Equirectangular output when I specify the FOV to be 180. If I enter in something like 210, then things start to look a little more correct, but once I add in my lens parameters things break.
So, I'm confused as to why using the calculated lens parameters is totally throwing off my FOV/cropping.
Please see the images linked on my dropbox below and my lens ini settings:
https:/
Any clues as to what I'm doing wrong? Did Hugin just calculate bad lens parameters? But then that doesn't explain the weirdness in the FOV numbers (why setting a FOV to 210 results in more correct images with ABC lens parameters = 0). Maybe the FOV parameter represents the full uncropped region of the image frame rather than the cropped region. Is that correct?
I am able to get this working fairly easily in PTGui, but I'd like to have it working in Hugin as well. Also, I would somewhat expect to be able to use the same FOV/A/B/C values between Hugin and PTGui, but that doesn't seem to be the case. Should that work?
Thanks,
Dustin
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Hugin Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Dustin Kerstein for more information if necessary.