aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-12 16:07:39 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-17 10:36:28 +0100
commited6508f245f8f7da7b7eef295006f919c616aefb (patch)
tree0f1b40c2f76a96d914cb17222b6714f8307fff62
parent7f998326c6b00162d6e8fad17242dfc9a4ec5eb4 (diff)
Remove median correction along long axes of panels
The 'noise' in this direction is really a gain difference, so it's not correct to try to subtract it out.
-rw-r--r--src/filters.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/filters.c b/src/filters.c
index dfbe353f..f6f5e0b8 100644
--- a/src/filters.c
+++ b/src/filters.c
@@ -40,25 +40,6 @@ static void clean_panel(struct image *image, int sx, int sy)
int x, y;
const int s = sizeof(signed int);
- for ( y=0; y<128; y++ ) {
-
- signed int vals[512];
- double m;
-
- for ( x=0; x<512; x++ ) {
- vals[x] = image->data[(x+sx)+(y+sy)*image->width];
- }
-
- qsort(&vals[0], 512, s, compare_vals);
-
- m = gsl_stats_int_median_from_sorted_data(vals, 1, 512);
-
- for ( x=0; x<512; x++ ) {
- image->data[(x+sx)+(y+sy)*image->width] -= m;
- }
-
- }
-
for ( x=0; x<512; x++ ) {
signed int vals[128];