diff options
author | Thomas White <taw@physics.org> | 2013-03-11 12:08:11 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-03-11 12:08:55 +0100 |
commit | 26b9d5227a96e5f5a607df98622df83f0f944bcc (patch) | |
tree | 9e0641293c7073c69002baaff490e0f1cf67aae6 /src/hdfsee.c | |
parent | dcfeca3dc9a38873de0d39cfcef4a80b26974352 (diff) |
hdfsee: Add --median-filter, and make --filter-cm and --filter-noise actually work
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r-- | src/hdfsee.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c index 36472e46..2db58f41 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -124,6 +124,7 @@ int main(int argc, char *argv[]) char *reslist = NULL; double ring_radii[128]; int n_rings = -1; + int median_filter = 0; /* Long options */ const struct option longopts[] = { @@ -139,6 +140,7 @@ int main(int argc, char *argv[]) {"show-rings", 0, &config_showrings, 1}, {"ring-size", 1, NULL, 2}, {"simple-rings", 1, NULL, 'r'}, + {"median-filter", 1, NULL, 3}, {0, 0, NULL, 0} }; @@ -197,6 +199,10 @@ int main(int argc, char *argv[]) } break; + case 3 : + median_filter = atoi(optarg); + break; + case 'r' : config_showrings = 1; reslist = strdup(optarg); @@ -265,7 +271,8 @@ int main(int argc, char *argv[]) config_showrings, ring_radii, n_rings, - ring_size); + ring_size, + median_filter); if ( main_window_list[i] != NULL ) main_n_windows++; } |