diff options
author | Thomas White <taw@physics.org> | 2010-02-04 15:35:01 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-04 15:35:01 +0100 |
commit | 328a4fdc5959161d66eb62bf6896d3cd2fda53da (patch) | |
tree | 713598b1c513b0a9729e6340cea7f1ef2155f116 /src/indexamajig.c | |
parent | 156ad97c842b5a68be6d09d259697e92d60dfea4 (diff) |
Add --clean-image option
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index c7108fee..67073b89 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -31,6 +31,7 @@ #include "diffraction.h" #include "detector.h" #include "sfac.h" +#include "filters.h" static void show_help(const char *s) @@ -53,6 +54,8 @@ static void show_help(const char *s) " --near-bragg Output a list of reflection intensities to stdout.\n" " --simulate Simulate the diffraction pattern using the indexed\n" " unit cell.\n" +" --clean-image Perform common-mode noise subtraction and\n" +" background removal on images before proceeding.\n" "\n"); } @@ -70,6 +73,7 @@ int main(int argc, char *argv[]) int config_nearbragg = 0; int config_writedrx = 0; int config_simulate = 0; + int config_clean = 0; IndexingMethod indm; char *indm_str = NULL; @@ -83,6 +87,7 @@ int main(int argc, char *argv[]) {"write-drx", 0, &config_writedrx, 1}, {"indexing", 1, NULL, 'z'}, {"simulate", 0, &config_simulate, 1}, + {"clean-image", 0, &config_clean, 1}, {0, 0, NULL, 0} }; @@ -175,6 +180,10 @@ int main(int argc, char *argv[]) hdf5_read(hdfile, &image); + if ( config_clean ) { + clean_image(&image); + } + /* Perform 'fine' peak search */ search_peaks(&image); |