1 // Copyright 2003, 2004, 2005 David Hilvert <dhilvert@gmail.com>,
2 // <dhilvert@auricle.dyndns.org>,
3 // <dhilvert@ugcs.caltech.edu>
5 /* This file is part of the Anti-Lamenessing Engine.
7 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with the Anti-Lamenessing Engine; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * See scene.h for details on these variables.
28 scene::lod_images
*scene::al
;
29 ale_pos
scene::front_clip
= 0;
30 int scene::input_decimation_lower
= 0;
31 int scene::output_decimation_preferred
= 0;
32 int scene::primary_decimation_upper
= 0;
33 int scene::output_clip
= 0;
34 ale_pos
scene::rear_clip
= 0;
35 const char *scene::load_model_name
= NULL
;
36 const char *scene::save_model_name
= NULL
;
37 const ale_real
scene::nearness
= 0.01;
39 scene::spatial_info_map_t
scene::spatial_info_map
;
41 // scene::spatial_info *scene::tracked_space = NULL;
43 unsigned long scene::total_ambiguity
= 0;
44 unsigned long scene::total_pixels
= 0;
45 unsigned long scene::total_divisions
= 0;
46 unsigned long scene::total_tsteps
= 0;
48 double scene::occ_att
= 0.50;
50 int scene::normalize_weights
= 1;
51 int scene::use_filter
= 1;
52 const char *scene::d3chain_type
= "";
54 double scene::falloff_exponent
= 0;
55 double scene::tc_multiplier
= 0;
56 unsigned int scene::ou_iterations
= 10;
57 unsigned int scene::pairwise_ambiguity
= 3;
58 const char *scene::pairwise_comparisons
= "auto";
59 int scene::d3px_count
;
60 double *scene::d3px_parameters
;
61 double scene::encounter_threshold
= 0;
62 int scene::subspace_traverse
= 0;
65 * Precision discriminator
67 * For some reason, colors that should be identical are calculated differently
68 * along different computational pathways, either due to a compiler idiosyncrasy,
69 * or due to an as-of-yet undiscovered bug in the code. We use the following
70 * constant in an effort to winnow out these discrepancies, which can sometimes
71 * cause cycles in the adjustment preference function.
74 #define DISCRIMINATOR 1e-5