OSDN Git Service

rebuild: for X86LINUX64/X86LINUX64ICC
[eos/base.git] / hostdepend / X86LINUX64ICC / include / tkImgFmtMRC.h
1 #ifndef TK_IMG_FMT_MRC_H
2 #define TK_IMG_FMT_MRC_H
3
4 /*
5 # %M% %Y% %I%
6 # The latest update : %G% at %U%
7 #
8 #%Z% tkImgFmtMRC ver %I%
9 #%Z% Created by 
10 #%Z%
11 #%Z% Usage : tkImgFmtMRC 
12 #%Z% Attention
13 #%Z%
14 */
15
16 #include <tk.h>
17
18 #undef DEBUG
19 #include "genUtil.h"
20 #include "Vector.h"
21 #include "Memory.h"
22 #include "mrcImage.h"
23 #include "lmrcFFTInfo.h"
24
25 /*
26  * Define MRC, i.e. gray images and color images.
27  */
28
29 /* constant begin */
30 #define MRC 1
31 /* constant end */
32
33
34 /*
35  * The format record for the MRC file format:
36  */
37 /* struct begin */
38 typedef struct tkmrcInfo {
39         mrcImage mrc;
40         char*    fileName;  /* File Name to be treated */ 
41         long     flagHeader;
42         long     flagImage; /* Image Array Free or not */
43
44         long flagnz;
45         mrcImageParaTypeInteger nz;
46
47         long flagz;
48         mrcImageParaTypeReal z;
49
50         long  flagMin;
51         float Min;
52         long  flagMax;
53         float Max;
54         long  Inverse; 
55         long  flagLog;
56         long  flagPower;
57         long  flagInfo;
58         mrcImageInformation Info;
59         long  flagFSInfo;
60         mrcFSInfo FSInfo;
61         long  flagContrast;
62         float Contrast;
63
64         long    flagHist;
65         long    nhist;
66         double* histgram;
67         
68         long    flagScattering;
69         long    flagR;
70         long    flagScattering2D;
71         long    nScattering;
72         double* scattering;
73         double** scattering2D;
74         double  axis;
75         double  numDivision;
76         double* R;
77
78         long flagProjX;
79         mrcImage projX;
80         long flagProjY;
81         mrcImage projY;
82
83         long flagSectX;
84         mrcImage sectX;
85         long flagSectY;
86         mrcImage sectY;
87 } tkmrcInfo;
88 /* struct end */
89
90 #ifdef __cplusplus
91 extern "C" {
92 #endif
93
94 /* prototype begin */
95 extern int tkmrcInfoCmdSet(Tcl_Interp*  interp); 
96 extern int tkmrcInfoSetCmd(ClientData clientData, Tcl_Interp* interp, int argc, CONST char* argv[]);
97 extern int tkmrcInfoGetCmd(ClientData clientData, Tcl_Interp* interp, int argc, CONST char* argv[]);
98 extern Tk_PhotoImageFormat tkImgFmtMRC;
99
100 /* prototype end */
101
102 #ifdef __cplusplus
103 };
104 #endif
105 #endif /* */
106