summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-19 18:07:23 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-19 18:07:23 +0100
commit731d704f7681a09c98e0494f6ea6297892045fb7 (patch)
tree7cacba25e1559887a7096fd53694382893cfa2de /src
parent5457c660336a7f9bc74bdf85ab4e001a4f81a6f9 (diff)
remove unneeded check
Diffstat (limited to 'src')
-rw-r--r--src/Stitch.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index 1da565b..11ee274 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -31,6 +31,7 @@ Stitch::Stitch() {
color_adjust[i][l] = 1.0;
}
}
+
merged_image = NULL;
num_pics = 0;
V1 = 0.0;
@@ -150,20 +151,18 @@ Stitch::vignette_calib(GipfelWidget::sample_mode_t m,
merged_image->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);
- 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;
int c1[3], c2[3];
double c1d[3], c2d[3];
- for (int p1=0; p1<num_pics; p1++) {
- if (gipf[p1] == NULL) {
- break;
- } else if (get_pixel(m, p1, a_view, a_nick,
+ for (int p1 = 0; p1 < num_pics; p1++) {
+ if (get_pixel(m, p1, a_view, a_nick,
&c1[0], &c1[1], &c1[2]) == 0) {
for (int l = 0; l<3; l++) {