aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-01-28 13:36:27 +0100
committerThomas White <taw@physics.org>2014-04-25 16:58:49 +0200
commit6d9eff9db89360fafe79493fe0f9bc907499a899 (patch)
treec271fbc8ce0b499dc4fafe0ab4dadc5c70399fba /src/hdfsee.c
parented571bb053a53ddc86b62f9570394aa1c3af7ffe (diff)
Implemented calibration mode
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r--src/hdfsee.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index df0bd281..49c4775f 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -61,7 +61,7 @@ static void show_help(const char *s)
" --filter-noise Apply an aggressive noise filter to the\n"
" image data.\n"
" --median-filter=<n> Apply a median filter to the image data.\n"
-
+" --calibration-mode Starts in calibration mode\n"
" --show-rings Overlay rings that indicate resolution.\n"
" --simple-rings=XX,YY,... Overlay rings at specified radii XX, YY, ...\n"
" in pixel units.\n"
@@ -115,6 +115,7 @@ int main(int argc, char *argv[])
int binning = 2;
int config_noisefilter = 0;
int config_showrings = 0;
+ int config_calibmode =0;
int colscale = SCALE_COLOUR;
char *cscale = NULL;
char *element = NULL;
@@ -141,6 +142,7 @@ int main(int argc, char *argv[])
{"ring-size", 1, NULL, 2},
{"simple-rings", 1, NULL, 'r'},
{"median-filter", 1, NULL, 3},
+ {"calibration-mode", 0, &config_calibmode, 1},
{0, 0, NULL, 0}
};
@@ -276,6 +278,7 @@ int main(int argc, char *argv[])
main_window_list[i] = displaywindow_open(argv[optind+i], peaks,
boost, binning,
config_noisefilter,
+ config_calibmode,
colscale, element,
geometry, beam,
config_showrings,