From 759799defe3e388bc9ec7255c79895138194e4fa Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 17 Mar 2007 21:47:58 +0100 Subject: show sample points in separate window --- src/gipfel.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/gipfel.cxx') diff --git a/src/gipfel.cxx b/src/gipfel.cxx index e9743d8..410471d 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -569,6 +569,17 @@ stitch(GipfelWidget::sample_mode_t m, } + if (type & STITCH_VIGNETTE_CALIB) { + win = new Fl_Window(0,0, 1000, 400); + scroll = new Fl_Scroll(0, 0, win->w(), win->h()); + PreviewOutputImage *img = + new PreviewOutputImage(0, 0, 1000, 400); + + win->resizable(scroll); + win->show(0, argv); + st->set_output((OutputImage*) img); + st->vignette_calib(m, stitch_w, stitch_h, from, to); + } if (type & STITCH_JPEG) { st->set_output((OutputImage*) new JPEGOutputImage(path, 90)); @@ -600,9 +611,6 @@ stitch(GipfelWidget::sample_mode_t m, win->show(0, argv); st->set_output((OutputImage*) img); - if (type & STITCH_VIGNETTE_CALIB) { - st->vignette_calib(m, stitch_w, stitch_h, from, to); - } st->resample(m, stitch_w, stitch_h, from, to); img->redraw(); -- cgit v1.2.3