Bsoft
2.1.0
Bernard's software package
rwSUPRIM.h
Go to the documentation of this file.
1
11
#include "
rwimg.h
"
12
13
/* REGISTER ASSIGNMENT */
14
15
#define F_AVG 0
16
#define BACKGROUND 0
17
#define ANG_SAMP 1
18
#define RAD_SAMP 2
19
#define O_ROW_SZ 3
20
#define O_COL_SZ 4
21
#define ROW_ORG 5 // x origin
22
#define COL_ORG 6 // y origin
23
#define MASK_RAD 7
24
#define F_NOTE_R 8
25
#define F_NOTE_I 9
26
#define SAMP_DIST 10 // Sampling
27
#define NSLICES 11 // z dimension
28
#define ENL_BP 12
29
#define X_FMAX 12
30
#define THE_BP 13 // Theta Euler angle
31
#define PHI_BP 14 // Phi Euler angle
32
#define FOUR_TR_CEN 15
33
#define GSBAR 15
34
#define X_NIMA 16
35
#define SYMP2 17
36
#define X_NPIX 17
37
#define X_NCLU 18
38
#define X_NCTR 19
39
#define X_NAME 20
40
#define X_LNAM 21
41
#define X_NTRM 21
42
#define X_NFAC 22
43
#define X_NTYP 23
44
#define FRTHDIM 24
45
#define X_NIMI 26
46
#define X_UFAC 27
47
#define X_WALL 28
48
#define SLICE_ORG 29 // z origin
49
#define NUM_POLYS 31
50
#define X_FBEG 32
51
#define PSI_BP 40 // Psi Euler angle (added JBH 20011102)
52
#define X_TRP 70
53
#define R_ANGX 81
54
#define R_ANGY 82
55
#define R_ANGZ 83
56
#define R_NPROJ 84
57
#define XGLOB 90
58
#define YGLOB 91
59
#define ROTGLOB 92
60
#define XX_CELL 93
61
#define XY_CELL 94
62
#define YX_CELL 95
63
#define YY_CELL 96
64
#define IR_WINID 97
65
#define O_SLICE_SZ 98
66
#define CALIB 99
67
#define NAV 100
68
69
#define SUPRIMSIZE 548 // Minimum size of the SUPRIM header (excluding trace)
70
71
#define MAXREG 128
72
73
typedef
union
{
74
int
l
;
75
float
f
;
76
}
REG
;
77
78
struct
SUPRIMhead
{
// file header for SUPRIM data
79
int
nrow
;
// 0 0 y dimension
80
int
ncol
;
// 1 4 x dimension
81
int
format
;
// 2 8 word size (1/2/4/8)
82
int
intern
;
// 3 12 data type
83
int
type
;
// 4 16 file type
84
float
min
;
// 5 20 minimum
85
float
max
;
// 6 24 maximum
86
float
av
;
// 7 28 average
87
float
sd
;
// 8 32 standard deviation
88
REG
reg
[
MAXREG
];
// 9 36 additional registers (see above for index definitions)
89
char
trace
[1024];
// 10 548 trace (history and date)
90
} ;
91
92
93
// I/O prototypes
94
int
readSUPRIM
(
Bimage
* p,
int
readdata);
95
int
writeSUPRIM
(
Bimage
* p);
SUPRIMhead::type
int type
Definition:
rwSUPRIM.h:83
SUPRIMhead::sd
float sd
Definition:
rwSUPRIM.h:87
SUPRIMhead::av
float av
Definition:
rwSUPRIM.h:86
MAXREG
#define MAXREG
Definition:
rwSUPRIM.h:71
SUPRIMhead
Definition:
rwSUPRIM.h:78
SUPRIMhead::nrow
int nrow
Definition:
rwSUPRIM.h:79
REG::l
int l
Definition:
rwSUPRIM.h:74
readSUPRIM
int readSUPRIM(Bimage *p, int readdata)
Reading a SUPRIM map image file format. A 3D image format used in electron microscopy....
Definition:
rwSUPRIM.cpp:60
SUPRIMhead::max
float max
Definition:
rwSUPRIM.h:85
Bimage
General image parameter class.
Definition:
Bimage.h:177
SUPRIMhead::reg
REG reg[MAXREG]
Definition:
rwSUPRIM.h:88
REG::f
float f
Definition:
rwSUPRIM.h:75
rwimg.h
Header file for 2D and 3D image I/O.
SUPRIMhead::min
float min
Definition:
rwSUPRIM.h:84
SUPRIMhead::format
int format
Definition:
rwSUPRIM.h:81
SUPRIMhead::ncol
int ncol
Definition:
rwSUPRIM.h:80
SUPRIMhead::trace
char trace[1024]
Definition:
rwSUPRIM.h:89
REG
Definition:
rwSUPRIM.h:73
writeSUPRIM
int writeSUPRIM(Bimage *p)
Writing a SUPRIM map image file format. A 3D image format used in electron microscopy.
Definition:
rwSUPRIM.cpp:203
SUPRIMhead::intern
int intern
Definition:
rwSUPRIM.h:82
include
rwSUPRIM.h
Generated on Mon Oct 26 2020 09:24:41 for Bsoft by
1.8.20