Bsoft  2.1.0
Bernard's software package
rwSPIDER.h
Go to the documentation of this file.
1 
11 #include "rwimg.h"
12 
13 #define SPIDERSIZE 1024 // Minimum size of the SPIDER header (variable)
14 
15 struct SPIDERhead { // file header for SPIDER data
16  float nslice; // 0 slices in volume (image = 1)
17  float nrow; // 1 rows per slice
18  float irec; // 2 # records in file (unused)
19  float nhistrec; // 3 (obsolete)
20  float iform; // 4 file type specifier
21  float imami; // 5 max/min flag (=1 if calculated)
22  float fmax; // 6 maximum
23  float fmin; // 7 minimum
24  float av; // 8 average
25  float sig; // 9 standard deviation (=-1 if not calculated)
26  float ihist; // 10 (obsolete)
27  float nsam; // 11 pixels per row
28  float labrec; // 12 # records in header
29  float iangle; // 13 flag: tilt angles filled
30  float phi; // 14 tilt angles
31  float theta; // 15
32  float gamma; // 16 (=psi)
33  float xoff; // 17 translation
34  float yoff; // 18
35  float zoff; // 19
36  float scale; // 20 scaling
37  float labbyt; // 21 # bytes in header
38  float lenbyt; // 22 record length in bytes (row length)
39  float istack; // 23 indicates stack of images
40  float inuse; // 24 indicates this image in stack is used (not used)
41  float maxim; // 25 max image in stack used
42  float imgnum; // 26 number of current image
43  float unused[2]; // 27-28 (unused)
44  float kangle; // 29 flag: additional angles set
45  float phi1; // 30 additional angles
46  float theta1; // 31
47  float psi1; // 32
48  float phi2; // 33
49  float theta2; // 34
50  float psi2; // 35
51  float extra[175]; // 36-210 extra (49-75 for Jose Maria's transforms)
52  char cdat[12]; // 211-213 creation date
53  char ctim[8]; // 214-215 creation time
54  char ctit[160]; // 216-255 title
55 } ;
56 
57 
58 // I/O prototypes
59 int readSPIDER(Bimage* p, int readdata, int img_select);
60 int writeSPIDER(Bimage* p);
SPIDERhead::ctit
char ctit[160]
Definition: rwSPIDER.h:54
SPIDERhead::unused
float unused[2]
Definition: rwSPIDER.h:43
SPIDERhead::inuse
float inuse
Definition: rwSPIDER.h:40
SPIDERhead::nrow
float nrow
Definition: rwSPIDER.h:17
writeSPIDER
int writeSPIDER(Bimage *p)
Writing a SPIDER image file format. A 3D image format used in electron microscopy.
Definition: rwSPIDER.cpp:243
SPIDERhead::phi2
float phi2
Definition: rwSPIDER.h:48
SPIDERhead::maxim
float maxim
Definition: rwSPIDER.h:41
SPIDERhead::labrec
float labrec
Definition: rwSPIDER.h:28
SPIDERhead::nhistrec
float nhistrec
Definition: rwSPIDER.h:19
SPIDERhead::yoff
float yoff
Definition: rwSPIDER.h:34
SPIDERhead::imami
float imami
Definition: rwSPIDER.h:21
SPIDERhead::imgnum
float imgnum
Definition: rwSPIDER.h:42
SPIDERhead::labbyt
float labbyt
Definition: rwSPIDER.h:37
SPIDERhead::zoff
float zoff
Definition: rwSPIDER.h:35
SPIDERhead::psi2
float psi2
Definition: rwSPIDER.h:50
SPIDERhead::psi1
float psi1
Definition: rwSPIDER.h:47
SPIDERhead::fmax
float fmax
Definition: rwSPIDER.h:22
SPIDERhead::irec
float irec
Definition: rwSPIDER.h:18
SPIDERhead::nsam
float nsam
Definition: rwSPIDER.h:27
SPIDERhead::phi
float phi
Definition: rwSPIDER.h:30
SPIDERhead::ihist
float ihist
Definition: rwSPIDER.h:26
SPIDERhead::sig
float sig
Definition: rwSPIDER.h:25
SPIDERhead::scale
float scale
Definition: rwSPIDER.h:36
SPIDERhead::nslice
float nslice
Definition: rwSPIDER.h:16
Bimage
General image parameter class.
Definition: Bimage.h:177
SPIDERhead::theta2
float theta2
Definition: rwSPIDER.h:49
SPIDERhead::phi1
float phi1
Definition: rwSPIDER.h:45
SPIDERhead::theta
float theta
Definition: rwSPIDER.h:31
SPIDERhead::iform
float iform
Definition: rwSPIDER.h:20
SPIDERhead::fmin
float fmin
Definition: rwSPIDER.h:23
SPIDERhead
Definition: rwSPIDER.h:15
SPIDERhead::av
float av
Definition: rwSPIDER.h:24
rwimg.h
Header file for 2D and 3D image I/O.
SPIDERhead::theta1
float theta1
Definition: rwSPIDER.h:46
SPIDERhead::iangle
float iangle
Definition: rwSPIDER.h:29
SPIDERhead::istack
float istack
Definition: rwSPIDER.h:39
SPIDERhead::ctim
char ctim[8]
Definition: rwSPIDER.h:53
SPIDERhead::gamma
float gamma
Definition: rwSPIDER.h:32
SPIDERhead::kangle
float kangle
Definition: rwSPIDER.h:44
SPIDERhead::cdat
char cdat[12]
Definition: rwSPIDER.h:52
SPIDERhead::lenbyt
float lenbyt
Definition: rwSPIDER.h:38
SPIDERhead::xoff
float xoff
Definition: rwSPIDER.h:33
SPIDERhead::extra
float extra[175]
Definition: rwSPIDER.h:51
readSPIDER
int readSPIDER(Bimage *p, int readdata, int img_select)
Reading a SPIDER image file format.
Definition: rwSPIDER.cpp:82