forked from sandywang/inormalize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InormalizeArgs.h
83 lines (68 loc) · 2.33 KB
/
InormalizeArgs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*--------------------------------------------------------------------------
@COPYRIGHT :
Copyright 1996, Alex P. Zijdenbos,
McConnell Brain Imaging Centre,
Montreal Neurological Institute, McGill University.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies. The author and McGill University
make no representations about the suitability of this
software for any purpose. It is provided "as is" without
express or implied warranty.
----------------------------------------------------------------------------
$RCSfile: InormalizeArgs.h,v $
$Revision: 1.2 $
$Author: bert $
$Date: 2005-08-17 23:14:26 $
$State: Exp $
--------------------------------------------------------------------------*/
#ifndef _I_NORMALIZE_ARGS_H
#define _I_NORMALIZE_ARGS_H
extern "C" { /* (bert)-use C linkage */
#include <ParseArgv.h>
}
#include "EBTKS/Minc.h"
#include "EBTKS/Path.h"
class InormalizeArgs {
public:
MString command;
Path inputPath;
Path modelPath;
Path maskPath;
Path outputPath;
Volume volume, model, mask;
Boolean oneConst, twoConst, useRange;
static int clobber;
static int verbose;
static int printValues;
static int compress;
static int cache;
static int normalize;
static int useWorldCoord;
static char *modelString;
static int zNormalize, yNormalize, xNormalize;
static int method;
static int minVoxels;
static int constrained;
static char *maskString;
static double thresholds[2];
static double constants[2];
static double rangePct;
#ifdef HAVE_MATLAB
static char *matlabOutputString;
#endif
static ArgvInfo argTable[];
// All this methods stuff should be streamlined somehow
static const int RMS, VR;
static const int RATIO_OF_MEANS, RATIO_OF_MEDIANS;
static const int MEAN_OF_RATIOS, MEAN_OF_LOG_RATIOS, MEDIAN_OF_RATIOS;
static const int RANGE;
static const char *methods[];
static const int nMethods;
// Constructors/destructor
InormalizeArgs(int argc, char **argv);
~InormalizeArgs() {}
};
Volume loadVolume(const Path& path, int verbose = 0);
#endif