ui: initialize alignment display parameters, so that these do not assume
[Ale.git] / d2 / align.cc
blobaa145a5707d26c8bbdccaeaf7f5a88572e4e1ab0
1 // Copyright 2002 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "align.h"
24 * See align.h for details on these variables.
27 int align::_exp_register = 1;
29 ale_pos align::scale_factor;
31 transformation align::orig_t = transformation::eu_identity();
32 int align::_keep = 0;
33 transformation *align::kept_t = NULL;
34 int *align::kept_ok = NULL;
36 tload_t *align::tload = NULL;
37 tsave_t *align::tsave = NULL;
38 render *align::reference = NULL;
39 filter::scaled_filter *align::interpolant = NULL;
40 const image *align::reference_image = NULL;
41 const image *align::reference_defined = NULL;
42 const image *align::weight_map = NULL;
43 image *align::alignment_weights = NULL;
44 const char *align::wmx_file = NULL;
45 const char *align::wmx_exec = NULL;
46 const char *align::wmx_defs = NULL;
47 const char *align::fw_output = NULL;
48 double align::horiz_freq_cut = 0;
49 double align::vert_freq_cut = 0;
50 double align::avg_freq_cut = 0;
51 transformation align::latest_t = transformation::eu_identity();
52 int align::latest_ok;
53 int align::latest = -1;
55 int align::alignment_class = 1;
56 int align::default_initial_alignment_type = 1;
57 int align::perturb_type = 0;
58 int align::is_fail_default = 0;
59 int align::channel_alignment_type = 2;
60 ale_real align::metric_exponent = 2;
61 float align::match_threshold = -1;
64 * Upper/lower bounds
67 ale_pos align::perturb_lower = 0.125;
68 int align::perturb_lower_percent = 0;
69 ale_pos align::perturb_upper = 14;
70 int align::perturb_upper_percent = 1;
72 int align::lod_preferred = -3;
73 int align::min_dimension = 10;
75 ale_pos align::rot_max = 32.0;
76 ale_pos align::bda_mult = 2;
77 ale_pos align::bda_rate = 8;
78 ale_accum align::match_sum = 0;
79 int align::match_count = 0;
81 ale_pos align::_mc = 30;
82 int align::certainty_weights = 0;
83 int align::_gs = 6;
85 ale_accum align::_gs_mo = 67;
86 int align::gs_mo_percent = 1;
88 ale_real align::_ma_cert = 0.01;
90 exclusion *align::ax_parameters = NULL;
91 int align::ax_count = 0;
93 const point **align::cp_array = NULL;
94 unsigned int align::cp_count = 0;