From 88c08418710ab2c72d51f6fce13ad2d78e0706f6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 18 Mar 2010 11:05:41 +0100 Subject: Separate CM subtraction and noise filter --- src/hdfsee.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/hdfsee.c') diff --git a/src/hdfsee.c b/src/hdfsee.c index a1d16b56..ff74ead6 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -38,9 +38,11 @@ static void show_help(const char *s) " -p, --peak-overlay= Draw circles in positions listed in file.\n" " -i, --int-boost= Multiply intensity by .\n" " -b, --binning= Set display binning to .\n" -" --clean-image Perform common-mode noise subtraction and\n" -" background removal on images before\n" -" proceeding.\n" +" --filter-cm Perform common-mode noise subtraction.\n" +" --filter-noise Apply an aggressive noise filter which\n" +" sets all pixels in each 3x3 region to\n" +" zero if any of them have negative\n" +" values.\n" "\n"); } @@ -79,7 +81,8 @@ int main(int argc, char *argv[]) char *peaks = NULL; int boost = 1; int binning = 2; - int config_clean = 0; + int config_cmfilter = 0; + int config_noisefilter = 0; /* Long options */ const struct option longopts[] = { @@ -87,7 +90,8 @@ int main(int argc, char *argv[]) {"peak-overlay", 1, NULL, 'p'}, {"int-boost", 1, NULL, 'i'}, {"binning", 1, NULL, 'b'}, - {"clean-image", 0, &config_clean, 1}, + {"filter-cm", 0, &config_cmfilter, 1}, + {"filter-noise", 0, &config_noisefilter, 1}, {0, 0, NULL, 0} }; @@ -145,7 +149,8 @@ int main(int argc, char *argv[]) for ( i=0; i