diff options
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r-- | src/GipfelWidget.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index f63cc67..aa8469f 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -101,9 +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); - fprintf(stderr, "%f %f %f %f\n", pan->parms.k0, pan->parms.k1, pan->parms.u0, pan->parms.v0); + md->get_distortion_params(&pan->parms.k0, &pan->parms.k1); + fprintf(stderr, "%f %f\n", pan->parms.k0, pan->parms.k1); delete md; return 0; @@ -134,8 +133,7 @@ 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); + md->set_distortion_params(pan->parms.k0, pan->parms.k1); ret = md->save_image(img_file, file); delete md; |