Image Component Library (ICL)
BasicTypes.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLUtils/src/ICLUtils/BasicTypes.h **
10 ** Module : ICLUtils **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <stdint.h>
35 #include <complex>
36 
37 #ifdef ICL_HAVE_IPP
38 #include <ipp.h>
39 
40 #if IPP_VERSION_MAJOR == 6
41 #define ICL_HAVE_IPP_6X
42 #endif
43 
44 #endif
45 
46 namespace icl {
47 
48  // here, we do not use an extra utils namespace
49 
50 #ifdef ICL_HAVE_IPP
51  typedef Ipp64f icl64f;
53 
55  typedef Ipp32f icl32f;
56 
58  typedef Ipp32s icl32s;
59 
61  typedef Ipp16s icl16s;
62 
64  typedef Ipp8u icl8u;
65 
66 #else
67  typedef double icl64f;
69 
71  typedef float icl32f;
72 
74  typedef int32_t icl32s;
75 
77  typedef int16_t icl16s;
78 
80  typedef uint8_t icl8u;
81 
82 #endif
83 
85  typedef int8_t icl8s;
86 
88  typedef uint32_t icl32u;
89 
91  typedef uint16_t icl16u;
92 
94  typedef int64_t icl64s;
95 
97  typedef uint64_t icl64u;
98 
100  typedef std::complex<icl32f> icl32c;
101 
103  typedef std::complex<icl64f> icl64c;
104 
105 }
106 
std::complex< icl32f > icl32c
float comples type
Definition: BasicTypes.h:100
undocument this line if you encounter any issues!
Definition: Any.h:37
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
int64_t icl64s
64bit signed integer type for the ICL
Definition: BasicTypes.h:94
Ipp32s icl32s
32bit signed integer type for the ICL
Definition: BasicTypes.h:58
Ipp32f icl32f
32Bit floating point type for the ICL
Definition: BasicTypes.h:55
Ipp64f icl64f
64Bit floating point type for the ICL
Definition: BasicTypes.h:52
uint32_t icl32u
32bit unsigned integer type for the ICL
Definition: BasicTypes.h:88
std::complex< icl64f > icl64c
float comples type
Definition: BasicTypes.h:103
int8_t icl8s
8bit signed integer
Definition: BasicTypes.h:85
uint16_t icl16u
16bit unsigned integer type for the ICL
Definition: BasicTypes.h:91
uint64_t icl64u
64bit unsigned integer type for the ICL
Definition: BasicTypes.h:97
Ipp16s icl16s
16bit signed integer type for the ICL (range [-32767, 32768 ])
Definition: BasicTypes.h:61