| Bsoft 2.0.5 Bernard's software package

rwMFF.h
Go to the documentation of this file.
1
11 #include "rwimg.h"
12
13 #define MFFSIZE 268 // Size of the MFF header (constant)
14
15 struct MFFhead { // file header for What If MFF data
16 int pad1; // 0 padding
17 char title[80]; // 1-20 80-character title
18 int pad2[2]; // 21-22 padding
19 float a; // 23 Unit cell dimensions
20 float b; // 24
21 float c; // 25
22 float alpha; // 26 Unit cell angles
23 float beta; // 27
24 float gamma; // 28
25 int pad3[2]; // 29-30 padding
26 float stepu; // 31 Step size in direction U
27 float stepv; // 32 Step size in direction V
28 float stepw; // 33 Step size in direction W
29 int pad4[2]; // 34-35 padding
30 int idiru; // 36 Order for direction U
31 int idirv; // 37 Order for direction V
32 int idirw; // 38 Order for direction W
33 int pad5[2]; // 39-40 padding
34 int ndiva; // 41 Unit cell size in pixels
35 int ndivb; // 42
36 int ndivc; // 43
37 int pad6[2]; // 44-45 padding
38 int nx; // 46 Size of data
39 int ny; // 47
40 int nz; // 48
41 int pad7[2]; // 49-50 padding
42 float uvworg[3]; // 51-53 Fractional coordinates of first point
43 int pad8[2]; // 54-55 padding
44 float uvwmat[3][3]; // 56-64 Fractionalization matrix
45 int pad9[2]; // 65-66 padding
46 } ;
47
48
49 // I/O prototypes
50 int readMFF(Bimage* p, int readdata);
51 int writeMFF(Bimage* p);
MFFhead::ndivb
int ndivb
Definition: rwMFF.h:35
MFFhead::nz
int nz
Definition: rwMFF.h:40
MFFhead::nx
int nx
Definition: rwMFF.h:38
readMFF
int readMFF(Bimage *p, int readdata)
Reading a MFF image format.
Definition: rwMFF.cpp:32
MFFhead::c
float c
Definition: rwMFF.h:21
MFFhead::uvworg
float uvworg[3]
Definition: rwMFF.h:42
MFFhead::beta
float beta
Definition: rwMFF.h:23
MFFhead::gamma
float gamma
Definition: rwMFF.h:24
MFFhead::pad9
int pad9[2]
Definition: rwMFF.h:45
MFFhead::pad5
int pad5[2]
Definition: rwMFF.h:33
Bimage
General image parameter class.
Definition: Bimage.h:163
MFFhead::pad8
int pad8[2]
Definition: rwMFF.h:43
MFFhead::uvwmat
float uvwmat[3][3]
Definition: rwMFF.h:44
MFFhead::ndivc
int ndivc
Definition: rwMFF.h:36
MFFhead
Definition: rwMFF.h:15
MFFhead::pad1
int pad1
Definition: rwMFF.h:16
MFFhead::ndiva
int ndiva
Definition: rwMFF.h:34
MFFhead::idirw
int idirw
Definition: rwMFF.h:32
MFFhead::b
float b
Definition: rwMFF.h:20
MFFhead::pad3
int pad3[2]
Definition: rwMFF.h:25
MFFhead::stepu
float stepu
Definition: rwMFF.h:26
writeMFF
int writeMFF(Bimage *p)
Writeing a MFF image format.
Definition: rwMFF.cpp:104
MFFhead::stepv
float stepv
Definition: rwMFF.h:27
MFFhead::pad4
int pad4[2]
Definition: rwMFF.h:29
MFFhead::pad2
int pad2[2]
Definition: rwMFF.h:18
MFFhead::idiru
int idiru
Definition: rwMFF.h:30
MFFhead::alpha
float alpha
Definition: rwMFF.h:22
MFFhead::a
float a
Definition: rwMFF.h:19
MFFhead::pad6
int pad6[2]
Definition: rwMFF.h:37
rwimg.h
Header file for 2D and 3D image I/O.
MFFhead::title
char title[80]
Definition: rwMFF.h:17
MFFhead::idirv
int idirv
Definition: rwMFF.h:31
MFFhead::stepw
float stepw
Definition: rwMFF.h:28
MFFhead::pad7
int pad7[2]
Definition: rwMFF.h:41
MFFhead::ny
int ny
Definition: rwMFF.h:39