using pano_modify, I can only set FOV to int values (I want to set it to a double)

Asked by George


I am using the command line tools to create a panorama of the correct size. The line I am having difficulty with is:

pano_modify --fov=27x18.2 --projection=0 --output=modified.pto source.pto

When I run the application, pano_modify prints: Setting field of view to 27 x 17.9986

I looked at the pano_modfiy source code (, and it appears that on line 217, the FOV parameters is being parsed using int, where as the internal value is using doubles. Is there a reason for this? Can I change to doubles and recompile? line 217:
int hfov, vfov;
int n=sscanf(optarg, "%dx%d", &hfov, &vfov);

double hfov, vfov;
int n=sscanf(optarg, "%dx%d", &hfov, &vfov);

Thanks for your help

Question information

English Edit question
Hugin Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best tmodes (tmodes) said :

This was an oversight and has been fixed in the repository.
It needs some more changes than you have written.

Revision history for this message
George (george-banfill) said :

Thanks for fixing this for me tmodes.

How would I go about getting a built version of this so I can try out the change? Is there a nightly build server or anything that I could pull the most recent from. Building all the C++ assemblies for windows is somewhat intimidating for a c# developer like me.


Revision history for this message
George (george-banfill) said :

Thanks tmodes, that solved my question.