OSDN Git Service

modified: src/Tools/mrcImage/mrcImageShrink/src/test/Makefile
[eos/hostdependX86LINUX64.git] / include / dsn6File.h
1 #ifndef DSN6_H\r
2 #define DSN6_H\r
3 #include <stdio.h>\r
4 \r
5 typedef short Dsn6IntegerType;\r
6 typedef unsigned char Dsn6ImageType;\r
7 \r
8 #define Dsn6Header Header.DSN6HeaderCont\r
9 \r
10 typedef struct Dsn6Coord {\r
11         Dsn6IntegerType x;\r
12         Dsn6IntegerType y;\r
13         Dsn6IntegerType z;\r
14 } Dsn6Coord;\r
15 \r
16 typedef struct Dsn6HeaderContent {\r
17         Dsn6Coord Start;\r
18         Dsn6Coord Extent;\r
19         Dsn6Coord SamplingRate;\r
20         Dsn6IntegerType ACellEdge;\r
21         Dsn6IntegerType BCellEdge;\r
22         Dsn6IntegerType CCellEdge;\r
23         Dsn6IntegerType CosAlpha;\r
24         Dsn6IntegerType CosBeta;\r
25         Dsn6IntegerType CosGamma;\r
26         Dsn6IntegerType DensScaling;\r
27         Dsn6IntegerType DensOffset;\r
28         Dsn6IntegerType CellConstantScalingFactor;\r
29         Dsn6IntegerType Weight;\r
30         Dsn6IntegerType dummy[256-19];\r
31 } Dsn6HeaderContent;\r
32 \r
33 typedef union DSN6Header {\r
34         char               byte[512];\r
35         Dsn6IntegerType    data[256];\r
36         Dsn6HeaderContent  DSN6HeaderCont;\r
37 } DSN6Header;\r
38 \r
39 typedef struct Dsn6 {\r
40         DSN6Header     Header;\r
41         Dsn6ImageType* Image;   \r
42         float*         FloatImage;      \r
43 } Dsn6;\r
44 \r
45 extern void dsn6Init(Dsn6* map, int mode);\r
46 extern void dsn6ImageAllocate(Dsn6* map, int mode);\r
47 \r
48 extern void dsn6FileWrite(Dsn6* map, FILE* fpt, int mode);\r
49 #endif /* DSN6_H */\r