summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-14 19:53:41 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-14 19:53:41 +0100
commit52bcb63b5d8db6627c20c097f0c20df28e6918fc (patch)
tree33379705401c2b606bd687a9f3bbf1e6cfab1140 /src/GipfelWidget.cxx
parentfbb4796e81dcb2dc2bcf792917f2391f799653c8 (diff)
implement save/restore of distortion parameters
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r--src/GipfelWidget.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 6b51aa5..782a4c3 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -101,6 +101,8 @@ GipfelWidget::load_image(char *file) {
set_tilt_angle(md->get_tilt());
set_projection((Projection::Projection_t) md->get_projection_type());
set_focal_length_35mm(md->get_focal_length_35mm());
+ md->get_distortion_params(&pan->parms.k0, &pan->parms.k1,
+ &pan->parms.u0, &pan->parms.v0);
delete md;
@@ -132,6 +134,8 @@ GipfelWidget::save_image(char *file) {
md->set_tilt(get_tilt_angle());
md->set_focal_length_35mm(get_focal_length_35mm());
md->set_projection_type((int) get_projection());
+ md->set_distortion_params(pan->parms.k0, pan->parms.k1,
+ pan->parms.u0, pan->parms.v0);
ret = md->save_image(img_file, file);
delete md;