| Bsoft 2.0.5 Bernard's software package

rwDSN6.h
Go to the documentation of this file.
1
11 #include "rwimg.h"
12
13 #define DSN6SIZE 512 // Constant size of the DSN6 header
14
15 struct DSN6head { // file header for DSN6 data
16 short x_start; // 0 0 unit cell offset
17 short y_start; // 1 2
18 short z_start; // 2 4
19 short x_extent; // 3 6 image size
20 short y_extent; // 4 8
21 short z_extent; // 5 10
22 short x_sampling; // 6 12 unit cell size (voxels)
23 short y_sampling; // 7 14
24 short z_sampling; // 8 16
25 short a; // 9 18 unit cell dimensions in A
26 short b; // 10 20 (*cell_scale)
27 short c; // 11 22
28 short alpha; // 12 24 unit cell angles in degrees
29 short beta; // 13 26 (*cell_scale)
30 short gamma; // 14 28
31 short product; // 15 30 scale*(253-3)/(max-min)
32 short plus; // 16 32 (3*max-253*min)/(max-min)
33 short cell_scale; // 17 34 cell constant scaling factor
34 short scale; // 18 36 product scaling factor
35 short extra[237]; // 19 38 - 511
36 } ;
37
38
39 // I/O prototypes
40 int readDSN6(Bimage* p, int readdata);
41 int writeDSN6(Bimage* p);
DSN6head::c
short c
Definition: rwDSN6.h:27
DSN6head::a
short a
Definition: rwDSN6.h:25
DSN6head::y_extent
short y_extent
Definition: rwDSN6.h:20
DSN6head
Definition: rwDSN6.h:15
DSN6head::cell_scale
short cell_scale
Definition: rwDSN6.h:33
writeDSN6
int writeDSN6(Bimage *p)
Writing a DSN6 map image file format.
Definition: rwDSN6.cpp:112
DSN6head::y_sampling
short y_sampling
Definition: rwDSN6.h:23
DSN6head::x_start
short x_start
Definition: rwDSN6.h:16
DSN6head::extra
short extra[237]
Definition: rwDSN6.h:35
Bimage
General image parameter class.
Definition: Bimage.h:163
DSN6head::z_start
short z_start
Definition: rwDSN6.h:18
DSN6head::y_start
short y_start
Definition: rwDSN6.h:17
DSN6head::x_sampling
short x_sampling
Definition: rwDSN6.h:22
DSN6head::product
short product
Definition: rwDSN6.h:31
DSN6head::b
short b
Definition: rwDSN6.h:26
DSN6head::plus
short plus
Definition: rwDSN6.h:32
DSN6head::z_extent
short z_extent
Definition: rwDSN6.h:21
DSN6head::x_extent
short x_extent
Definition: rwDSN6.h:19
DSN6head::gamma
short gamma
Definition: rwDSN6.h:30
DSN6head::z_sampling
short z_sampling
Definition: rwDSN6.h:24
DSN6head::beta
short beta
Definition: rwDSN6.h:29
DSN6head::alpha
short alpha
Definition: rwDSN6.h:28
DSN6head::scale
short scale
Definition: rwDSN6.h:34
rwimg.h
Header file for 2D and 3D image I/O.
readDSN6
int readDSN6(Bimage *p, int readdata)
Reading a DSN6 map image file format.
Definition: rwDSN6.cpp:27