Bsoft
2.1.0
Bernard's software package
rwGRD.h
Go to the documentation of this file.
1
11
#include "
rwimg.h
"
12
13
#define GRDSIZE 512 // Size of the GRD header (constant)
14
15
struct
GRDhead
{
// file header for GRD data
16
int
magic
;
// 0 0 Magic number (42 for new spec)
17
int
origp
;
// 1 4 Processor: 1=vax, 2=mips
18
int
mode
;
// 2 8 1=uchar,2=float,3=complex_float
19
int
doffset
;
// 3 12 Data offset (0 => 512 bytes)
20
int
nx
;
// 4 16 Image size
21
int
ny
;
// 5 20
22
int
nz
;
// 6 24
23
int
nn
;
// 7 28 Number of images
24
int
channels
;
// 8 32 Number of channels
25
int
slowest
;
// 9 Dimension order (deprecated)
26
float
a
;
// 10 40 Cell dimensions in A
27
float
b
;
// 11
28
float
c
;
// 12
29
float
alpha
;
// 13 Cell angles
30
float
beta
;
// 14
31
float
gamma
;
// 15
32
float
amin
;
// 16 Minimum density value
33
float
amax
;
// 17 Maximum density value
34
float
amean
;
// 18 Average density value
35
float
arms
;
// 19 RMS deviation
36
float
ux
;
// 20 80 Sampling/voxel size
37
float
uy
;
// 21
38
float
uz
;
// 22
39
float
bkg
;
// 23 Background
40
float
ox
;
// 24 Origin
41
float
oy
;
// 25
42
float
oz
;
// 26
43
float
vx
;
// 27 View
44
float
vy
;
// 28
45
float
vz
;
// 29
46
float
va
;
// 30
47
float
extra
[33];
// 31-63 user-defined info
48
char
datetime
[16];
// 64 256 Date and time as YYYYMMDDhhmmss
49
char
symmetry
[32];
// 68 272 Symmetry string
50
char
label
[208];
// 76 304 Text label
51
} ;
52
53
54
// I/O prototypes
55
int
readGRD
(
Bimage
* p,
int
readdata,
int
img_select);
56
int
writeGRD
(
Bimage
* p);
GRDhead
Definition:
rwGRD.h:15
writeGRD
int writeGRD(Bimage *p)
Writing a Basel GRD map image file format.
Definition:
rwGRD.cpp:139
GRDhead::magic
int magic
Definition:
rwGRD.h:16
GRDhead::uz
float uz
Definition:
rwGRD.h:38
GRDhead::nx
int nx
Definition:
rwGRD.h:20
GRDhead::alpha
float alpha
Definition:
rwGRD.h:29
GRDhead::symmetry
char symmetry[32]
Definition:
rwGRD.h:49
GRDhead::arms
float arms
Definition:
rwGRD.h:35
readGRD
int readGRD(Bimage *p, int readdata, int img_select)
Reading a Basel GRD map image file format.
Definition:
rwGRD.cpp:33
GRDhead::vy
float vy
Definition:
rwGRD.h:44
GRDhead::nn
int nn
Definition:
rwGRD.h:23
GRDhead::doffset
int doffset
Definition:
rwGRD.h:19
GRDhead::b
float b
Definition:
rwGRD.h:27
GRDhead::mode
int mode
Definition:
rwGRD.h:18
GRDhead::c
float c
Definition:
rwGRD.h:28
GRDhead::nz
int nz
Definition:
rwGRD.h:22
GRDhead::a
float a
Definition:
rwGRD.h:26
GRDhead::oy
float oy
Definition:
rwGRD.h:41
GRDhead::amin
float amin
Definition:
rwGRD.h:32
GRDhead::datetime
char datetime[16]
Definition:
rwGRD.h:48
GRDhead::uy
float uy
Definition:
rwGRD.h:37
GRDhead::origp
int origp
Definition:
rwGRD.h:17
GRDhead::slowest
int slowest
Definition:
rwGRD.h:25
Bimage
General image parameter class.
Definition:
Bimage.h:177
GRDhead::bkg
float bkg
Definition:
rwGRD.h:39
GRDhead::ux
float ux
Definition:
rwGRD.h:36
GRDhead::gamma
float gamma
Definition:
rwGRD.h:31
GRDhead::amean
float amean
Definition:
rwGRD.h:34
GRDhead::label
char label[208]
Definition:
rwGRD.h:50
GRDhead::beta
float beta
Definition:
rwGRD.h:30
rwimg.h
Header file for 2D and 3D image I/O.
GRDhead::amax
float amax
Definition:
rwGRD.h:33
GRDhead::vx
float vx
Definition:
rwGRD.h:43
GRDhead::extra
float extra[33]
Definition:
rwGRD.h:47
GRDhead::channels
int channels
Definition:
rwGRD.h:24
GRDhead::oz
float oz
Definition:
rwGRD.h:42
GRDhead::ny
int ny
Definition:
rwGRD.h:21
GRDhead::va
float va
Definition:
rwGRD.h:46
GRDhead::ox
float ox
Definition:
rwGRD.h:40
GRDhead::vz
float vz
Definition:
rwGRD.h:45
include
rwGRD.h
Generated on Mon Oct 26 2020 09:24:41 for Bsoft by
1.8.20