1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*----------------------------------------------------------------------
5 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
8 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
9 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
11 This file is part of gpiv.
13 Gpiv is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2, or (at your option)
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ----------------------------------------------------------------------*/
28 /* {NULL, 'q', POPT_ARG_NONE, &q, 0, */
29 /* N_("Explain gpiv"), NULL}, */
32 static const struct poptOption options
[] = {
33 {"cross", 'x', POPT_ARG_NONE
, &gp
.x_corr
, 0,
34 N_("cross-correlation image"), N_("XCORR")},
36 {"img_fmt", '\0', POPT_ARG_INT
, &gp
.img_fmt
, 0,
37 N_("store image and header in PNG (0), raw (1) or HDF5 (2) format"), NULL
},
39 {"hdf", '\0', POPT_ARG_NONE
, &gp
.hdf
, 0,
40 N_("store resulting data in HDF5 format with .h5 extension"), NULL
},
43 {"mpi_nodes", '\0', POPT_ARG_INT
, &gp
.mpi_nodes
, 0,
44 N_("number of nodes for parallel execution on cluster using MPI"), N_("INT")},
45 #endif /* ENABLE_MPI */
47 {"print", 'p', POPT_ARG_NONE
, &gp
.print_par
, 0,
48 N_("print parameters and other info to stdout"), NULL
},
50 {"verbose", 'V', POPT_ARG_NONE
, &gp
.verbose
, 0,
51 N_("more verbose behaviour to stdout"), NULL
},
53 {"console__view_gpivbuttons", '\0', POPT_ARG_NONE
, &gp
.console__view_gpivbuttons
, 0,
54 N_("view the GPIV processing buttons"), NULL
},
56 {"console__view_tabulator", '\0', POPT_ARG_NONE
, &gp
.console__view_tabulator
, 0,
57 N_("view the tabulator of the application"), NULL
},
59 {"console__tooltips", '\0', POPT_ARG_NONE
, &gp
.console__show_tooltips
, 0,
60 N_("show tooltips"), NULL
},
62 {"console__bins", '\0', POPT_ARG_INT
, &gp
.console__nbins
, 0,
63 N_("number of bins for histograms"), N_("BINS")},
65 {"display__view_menubar", '\0', POPT_ARG_NONE
, &gp
.display__view_menubar
, 0,
66 N_("view the menubar of the display"),
69 {"display__view_rulers", '\0', POPT_ARG_NONE
, &gp
.display__view_rulers
, 0,
70 N_("view the rulers of the display"),
73 {"display__stretch", '\0', POPT_ARG_NONE
, &gp
.display__stretch_auto
, 0,
74 N_("automatic stretching of the display when zooming"),
77 {"display__background", '\0', POPT_ARG_INT
, &gp
.display__backgrnd
, 0,
78 N_("display background: 0:darkblue 1:black 2:image1 3:image2"),
81 {"display__intregs", '\0', POPT_ARG_NONE
, &gp
.display__intregs
, 0,
82 N_("display interrogation region contours"), NULL
},
84 {"display__piv", '\0', POPT_ARG_NONE
, &gp
.display__piv
, 0,
85 N_("display PIV data"), NULL
},
87 {"display__scalar", '\0', POPT_ARG_INT
, &gp
.display__scalar
, 0,
88 N_("display scalar data derived from PIV: 0:none 1:vorticity 2:shear strain 3:normal strain"), NULL
},
90 {"display__zoomscale", '\0', POPT_ARG_INT
, &gp
.display__zoom_index
, 0,
91 N_("display zoom index: 0:0.5, 1:0.83, 2:1.0, 3:1.3, 4:1.6, 5:2.0"),
94 {"display__vectorscale", '\0', POPT_ARG_INT
, &gp
.display__vector_scale
, 0,
95 N_("vector length scale"), N_("SCALE")},
98 {"process__cam", '\0', POPT_ARG_NONE
, &gp
.process__cam
, 0,
99 N_("executes image recording"), NULL
},
100 #endif /* ENABLE_CAM */
103 {"process__trig", '\0', POPT_ARG_NONE
, &gp
.process__trig
, 0,
104 N_("executes triggering of light source and camera"), NULL
},
105 #endif /* ENABLE_TRIG */
107 #ifdef ENABLE_IMGPROC
108 {"process__imgproc", '\0', POPT_ARG_NONE
, &gp
.process__imgproc
, 0,
109 N_("executes image manipulation"), NULL
},
110 #endif /* ENABLE_IMGPROC */
112 {"process__piv", '\0', POPT_ARG_NONE
, &gp
.process__piv
, 0,
113 N_("executes piv interrogation"), NULL
},
115 {"process__gradient", '\0', POPT_ARG_NONE
, &gp
.process__gradient
, 0,
116 N_("executes gradient test"), NULL
},
118 {"process__resstats", '\0', POPT_ARG_NONE
, &gp
.process__resstats
, 0,
119 N_("executes calculation of residu statistics"), NULL
},
121 {"process__errvec", '\0', POPT_ARG_NONE
, &gp
.process__errvec
, 0,
122 N_("executes PIV data validation"), NULL
},
124 {"process__peaklock", '\0', POPT_ARG_NONE
, &gp
.process__peaklock
, 0,
125 N_("executes peaklock testing"), NULL
},
127 {"process__average", '\0', POPT_ARG_NONE
, &gp
.process__average
, 0,
128 N_("executes average calculation"), NULL
},
130 {"process__scale", '\0', POPT_ARG_NONE
, &gp
.process__scale
, 0,
131 N_("executes time and spatial scaling"), NULL
},
133 {"process__subtract", '\0', POPT_ARG_NONE
, &gp
.process__subtract
, 0,
134 N_("executes subtracting the mean"), NULL
},
136 {"process__vorstra", '\0', POPT_ARG_NONE
, &gp
.process__vorstra
, 0,
137 N_("executes vorticity / strain calculation"), NULL
},
139 {NULL
, '\0', 0, NULL
, 0}