diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 17:22:03 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 17:22:03 +0100 |
commit | ca4c449ba9f3a40f8ac2c79a48f3d31144a1fafe (patch) | |
tree | 67644455af2963c4b308e6b4f71cb1926f978273 /src/Panorama.cxx | |
parent | 2de9f639b5c75112bfd6789bdc51546ef211b926 (diff) |
add command line option to specify distortion parameters
Diffstat (limited to 'src/Panorama.cxx')
-rw-r--r-- | src/Panorama.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 503f373..8b21fda 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -257,6 +257,13 @@ Panorama::set_scale(double s) { } void +Panorama::set_distortion_params(double k0, double k1) { + parms.k0 = k0; + parms.k1 = k1; + update_coordinates(); +} + +void Panorama::set_height_dist_ratio(double r) { height_dist_ratio = r; update_close_mountains(); |