OpenStructure
image_state_def.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 // Copyright (C) 2003-2010 by the IPLT authors
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the Free
9 // Software Foundation; either version 3.0 of the License, or (at your option)
10 // any later version.
11 // This library is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 // details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this library; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //------------------------------------------------------------------------------
20 
21 /*
22  typedefs for all 'official' image states
23 
24  Author: Ansgar Philippsen
25 */
26 
27 #ifndef IMG_IMAGE_STATE_DEF_H
28 #define IMG_IMAGE_STATE_DEF_H
29 
30 #include <ost/base.hh>
31 
32 #include "image_state_impl.hh"
36 
37 namespace ost { namespace img { namespace image_state {
38 
45 
46 
47 } // namespace image_state
48 
49 #if defined(OST_MODULE_OST_IMG)
50 # if defined(_MSC_VER)
51 # define OST_DECL_IMAGE_STATE(c, v, d)
52 # else
53 # define OST_DECL_IMAGE_STATE(c, v, d) extern template c TEMPLATE_EXPORT image_state::ImageStateImpl<v, image_state::d>;
54 # endif
55 #else
56 # define OST_DECL_IMAGE_STATE(c, v, d) extern template c DLLIMPORT image_state::ImageStateImpl<v, image_state::d>;
57 #endif
58 
59 OST_DECL_IMAGE_STATE(class, Real, SpatialDomain)
60 OST_DECL_IMAGE_STATE(class, Real, FrequencyDomain)
61 OST_DECL_IMAGE_STATE(class, Complex, SpatialDomain)
62 OST_DECL_IMAGE_STATE(class, Complex, FrequencyDomain)
63 OST_DECL_IMAGE_STATE(class, Complex, HalfFrequencyDomain)
64 OST_DECL_IMAGE_STATE(class, Word, SpatialDomain)
65 
66 #undef OST_DECL_IMAGE_STATE
67 
68 }} // namespaces
69 
70 #endif
#define OST_DECL_IMAGE_STATE(c, v, d)
float Real
Definition: base.hh:44
std::complex< Real > Complex
Definition: base.hh:51
unsigned short Word
Definition: base.hh:52
ImageStateImpl< Complex, HalfFrequencyDomain > ComplexHalfFrequencyImageState
ImageStateImpl< Complex, SpatialDomain > ComplexSpatialImageState
ImageStateImpl< Real, SpatialDomain > RealSpatialImageState
ImageStateImpl< Complex, FrequencyDomain > ComplexFrequencyImageState
ImageStateImpl< Real, FrequencyDomain > RealFrequencyImageState
ImageStateImpl< Word, SpatialDomain > WordSpatialImageState
Definition: base.dox:1