bootstrap, doc/Makefile: build documentation at package build time.
[Ale.git] / d2.h
blob92598209b657b204466e36be7abf086e79026d73
1 // Copyright 2003, 2004 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 2 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
22 * Top-level header file for classes treating scenes as two-dimensional data.
23 * autoconf 'config.h' should be included after this file, as we undefine
24 * various autoconf defines herein.
27 #include <stdint.h>
28 #include <assert.h>
29 #include <math.h>
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <string.h>
33 #include <limits.h>
35 #include <vector>
36 #include <algorithm>
38 #include "ale_real.h"
39 #include "ale_accum.h"
40 #include "ale_pos.h"
41 #include "ui/ui.h"
44 #include <iostream>
45 #include <ostream>
46 #include <typeinfo>
48 #ifdef USE_MAGICK
49 #include <magick/api.h>
52 * ImageMagick defines these, for reasons unclear.
53 * Since they clash with autotools names, undefine
54 * them here.
57 #undef PACKAGE_TARNAME
58 #undef PACKAGE_VERSION
59 #undef PACKAGE_STRING
60 #undef PACKAGE_NAME
61 #undef PACKAGE_BUGREPORT
62 #endif
64 #ifdef USE_FFTW
65 #include <fftw3.h>
66 #endif
68 #ifdef USE_UNIX
69 #include <sys/types.h>
70 #include <unistd.h>
71 #include <sys/wait.h>
72 #endif
74 #ifndef M_PI
75 #define M_PI 3.14159265358979323846
76 #endif
80 * All header files in the d2 namespace.
83 namespace d2 {
84 #include "d2/exclusion.h"
85 #include "d2/pixel.h"
86 #include "d2/spixel.h"
87 #include "d2/pixel_accum.h"
88 #include "d2/exposure/exposure.h"
89 #include "d2/exposure/exposure_default.h"
90 #include "d2/exposure/exposure_linear.h"
91 #include "d2/exposure/exposure_boolean.h"
92 #include "d2/align.h"
93 #include "d2/transformation.h"
94 #include "d2/image.h"
98 * XXX: The placement of this file is somewhat of a hack. What should
99 * be done about this?
101 #include "optimizations.h"
103 namespace d2 {
104 #include "d2/image_ale_real.h"
105 #include "d2/image_weighted_avg.h"
106 #include "d2/image_weighted_simple.h"
107 #include "d2/image_weighted_median.h"
108 #include "d2/image_zero.h"
109 #include "d2/image_rw.h"
110 #include "d2/point.h"
111 #include "d2/ppm.h"
112 #include "d2/render.h"
113 #include "d2/render_parse.h"
114 #include "d2/tfile.h"
115 #include "d2/filter.h"
116 #include "d2/render/combine.h"
117 // #include "d2/render/drizzle.h"
118 // #include "d2/render/usm.h"
119 #include "d2/render/ipc.h"
120 // #include "d2/render/merge.h"
121 #include "d2/render/psf/psf.h"
122 #include "d2/render/psf/psf_template.h"
123 #include "d2/render/psf/box.h"
124 #include "d2/render/psf/circle.h"
125 #include "d2/render/psf/sum.h"
126 #include "d2/render/psf/stdin.h"
127 #include "d2/render/psf/stdin_vg.h"
128 #include "d2/render/psf/convolution.h"
129 #include "d2/render/psf/scalar_mult.h"
130 #include "d2/render/psf/psf_parse.h"
131 #include "d2/render/psf/psf_calibrate.h"
132 #include "d2/vise_core.h"