1 /*
2   Teem: Tools to process and visualize scientific data and images             .
3   Copyright (C) 2012, 2011, 2010, 2009  University of Chicago
4   Copyright (C) 2008, 2007, 2006, 2005  Gordon Kindlmann
5   Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998  University of Utah
6 
7   This library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Lesser General Public License
9   (LGPL) as published by the Free Software Foundation; either
10   version 2.1 of the License, or (at your option) any later version.
11   The terms of redistributing and/or modifying this software also
12   include exceptions to the LGPL that facilitate static linking.
13 
14   This library is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17   Lesser General Public License for more details.
18 
19   You should have received a copy of the GNU Lesser General Public License
20   along with this library; if not, write to Free Software Foundation, Inc.,
21   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 */
23 
24 #include "gage.h"
25 #include "privateGage.h"
26 
27 const char *
28 gageBiffKey = "gage";
29 
30 int
31 gageDefVerbose = 0;
32 
33 double
34 gageDefGradMagCurvMin = 0.0;
35 
36 int
37 gageDefRenormalize = AIR_FALSE;
38 
39 int
40 gageDefCheckIntegrals = AIR_TRUE;
41 
42 int
43 gageDefK3Pack = AIR_TRUE;
44 
45 int
46 gageDefCurvNormalSide = 1;
47 
48 double
49 gageDefKernelIntegralNearZero = 0.0001;
50 
51 int
52 gageDefDefaultCenter = nrrdCenterCell;
53 
54 int
55 gageDefStackUse = AIR_FALSE; /* GLK doesn't see any reasonable circumstance
56                                 where this could be AIR_TRUE, since it
57                                 significantly changes the behavior of gage */
58 
59 int
60 gageDefStackNormalizeRecon = AIR_FALSE;
61 
62 int
63 gageDefStackNormalizeDeriv = AIR_FALSE;
64 
65 double
66 gageDefStackNormalizeDerivBias = 0.0;
67 
68 double
69 gageDefStackBlurSigmaMax = 8.0;
70 
71 int
72 gageDefOrientationFromSpacing = AIR_FALSE;
73 /* Before teem 1.10.0, gage behaved inconsistently: Derivatives were
74    taken as if orientationFromSpacing were TRUE, the index space to
75    world space mapping acted as if it were FALSE. Now, you have the
76    choice and get consistent results in either case. */
77 
78 int
79 gageDefGenerateErrStr = AIR_TRUE;
80 /* Before Teem 1.11, error strings were always sprintf, which can easily
81    become a bottleneck in some situations, but this should still stay
82    the default behavior */
83