GIPL.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2008-2015 Imperial College London
5  * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_GIPL_H
21 #define MIRTK_GIPL_H
22 
23 
24 // GIPL magic number
25 #define GIPL_MAGIC1 719555000u
26 #define GIPL_MAGIC2 4026526128u
27 #define GIPL_MAGIC_EXT 815u
28 
29 // GIPL header size
30 #define GIPL_HEADERSIZE 256
31 
32 // GIPL filter types
33 #define GIPL_BINARY 1
34 #define GIPL_CHAR 7
35 #define GIPL_U_CHAR 8
36 #define GIPL_SHORT 15
37 #define GIPL_U_SHORT 16
38 #define GIPL_U_INT 31
39 #define GIPL_INT 32
40 #define GIPL_FLOAT 64
41 #define GIPL_DOUBLE 65
42 #define GIPL_VECTOR_3D_CHAR 66
43 #define GIPL_VECTOR_3D_SHORT 67
44 #define GIPL_VECTOR_3D_FLOAT 68
45 #define GIPL_VECTOR_3D_DOUBLE 69
46 #define GIPL_C_SHORT 144
47 #define GIPL_C_INT 160
48 #define GIPL_C_FLOAT 192
49 #define GIPL_C_DOUBLE 193
50 
51 
52 #endif // MIRTK_GIPL_H