diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-03-19 18:11:02 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-03-19 18:11:02 +0100 |
commit | b95b66c256aa5daebcc72fab59d16a8cf1cdc707 (patch) | |
tree | f92765c7f2c2ac49ed550f214c08d4ba1b14be24 | |
parent | 731d704f7681a09c98e0494f6ea6297892045fb7 (diff) |
remove unneeded check
-rw-r--r-- | src/Stitch.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx index 11ee274..c099a72 100644 --- a/src/Stitch.cxx +++ b/src/Stitch.cxx @@ -277,24 +277,23 @@ Stitch::resample(GipfelWidget::sample_mode_t m, if (merged_image) { merged_image->init(w, h); } + for (int i=0; i<MAX_PICS; i++) { if (single_images[i]) { single_images[i]->init(w, h); } } - for (int y=0; y<h; y++) { + for (int y = 0; y < h; y++) { double a_nick = atan((double)(y_off - y)/radius); double a_max = 0.0; - for (int x=0; x<w; x++) { + for (int x = 0; x < w; x++) { double a_view; a_view = view_start + x * step_view; merged_pixel_set = 0; - for (int i=0; i<MAX_PICS; i++) { - if (gipf[i] == NULL) { - break; - } else if (get_pixel(m, i, a_view, a_nick, + for (int i = 0; i < num_pics; i++) { + if (get_pixel(m, i, a_view, a_nick, &r, &g, &b) == 0) { if (single_images[i]) { |