if(fov.x<40)
{
fov.x+=1;
fov.y+=1; // [BD] I add this line, so that y is equal to x treated
};
return fov;
s = z1 / z0;
s = z0 /(x_dest * (-sin(phi2)/cos(phi2)) + y_dest * sin(phi)/cos(phi) + z0);
1.) pano_modify.exe calculate a wrong (vertical?) FoV.
fov.x and fov.y must be calculated equivalent.
What reason is there for the if statement? The gap at 40.0 make no sense.
It looks like a dirty trick to bend the correct result to a desired result. I use always fov < 4, then it seems to work better with +1. But this is only a subjective impression.
2.)
%HUGINSDK%\libpano-hg\math.c
function tiltForward:
The first calculation of s is unused. Perhaps an unnoticed error.
The current
pano_modify.exe has the same issues. I think hugin using this program or the same source code. If is
fixed then
pano_modify.exe --projection=0 --fov=AUTO --canvas=AUTO --crop=AUTO -o out.pto in.pto
I want to show 4 issues:
- On site Optimizer in table Image Orientation, column Trx, TrY, TrZ show only rounded to integer values.
- On site Stitcher, edit fields Horizontal and Vertical show only rounded to integer values.
- On site Stitcher, button Calculate field of view: Calculate for Vertical a value that is Horizontal-1 (this is reported on my first post).
Per default the -–fullscale option for cpfind.exe is not set. Without this option cpfind work not correct (find lesser CPs and misplace this).
Am Dienstag, 20. September 2016 14:47:50 UTC+2 schrieb Bernd D:On site Optimizer in table Image Orientation, column Trx, TrY, TrZ show only rounded to integer values.No. The values are shown with 1 digit.
- On site Stitcher, edit fields Horizontal and Vertical show only rounded to integer values.
Yes. The optimal fov calculates with a resolution of 1 deg. And the most use case is a panorama with a high fov. So for this use case you don't need a higher resolution.
No, the calculation is with double precision. Only the GUI Value is rounded. If you let the edit field untouched then hugin use the unrounded value.
For a 360° panorama with 10000pix is 1° error = 10000pix/1° * 360° = 28pix
Per default the -–fullscale option for cpfind.exe is not set. Without this option cpfind work not correct (find lesser CPs and misplace this).Please don't state such general statements. In most case cpfind works fine without fullscale. There may be case where full scale is better suited, e.g. your images with a very low resolution and a repeating pattern. But this is specific to this use case and does not apply in general.
Sorry, I do not agree. It would have saved me several days troubleshooting if someone had warned me against this pitfall.