| Bsoft 2.0.5 Bernard's software package

rwBIORAD.h
Go to the documentation of this file.
1
10 #include "rwimg.h"
11
12 #define BIORADSIZE 76 // Size of the BioRad header (constant)
13
14
15 struct BIORADhead { // file header for BioRad data
16 short nx; // 0 0 X size
17 short ny; // 1 2 Y size
18 short nz; // 2 4 Z size or number of pictures
19 short black; // 3 6 Contrast ramp 0, pixel value black
20 short white; // 4 8 Contrast ramp 255, pixel value white
21 short pad1[2]; // 5 10 Padding
22 short mode; // 7 14 Byte = 1, Word = 0
23 short pad2[17]; // 8 16 Padding
24 short mark; // 25 50 Tag for merging or marking, usually 0
25 short color; // 26 52 Color selection
26 short magic; // 27 54 File identification = 12345
27 short black2; // 28 56 Contrast ramp 0, 2nd picture merged
28 short white2; // 29 58 Contrast ramp 255, 2nd picture merged
29 short color2; // 30 60 Color selection for 2nd picture merged
30 short pad3; // 31 62 Padding
31 short lens; // 32 64 Lens power (integer) or flag indic. fp
32 float mag; // 33 66 Magnification factor
33 short pad4[3]; // 35 70 Padding
34 } ;
35
36 // I/O prototypes
37 int readBIORAD(Bimage* p, int readdata);
38 int writeBIORAD(Bimage* p);
BIORADhead::mode
short mode
Definition: rwBIORAD.h:22
BIORADhead
Definition: rwBIORAD.h:15
BIORADhead::pad2
short pad2[17]
Definition: rwBIORAD.h:23
BIORADhead::pad1
short pad1[2]
Definition: rwBIORAD.h:21
readBIORAD
int readBIORAD(Bimage *p, int readdata)
Reading a BioRad image file format.
Definition: rwBIORAD.cpp:40
BIORADhead::ny
short ny
Definition: rwBIORAD.h:17
Bimage
General image parameter class.
Definition: Bimage.h:163
BIORADhead::mag
float mag
Definition: rwBIORAD.h:32
BIORADhead::color2
short color2
Definition: rwBIORAD.h:29
BIORADhead::black
short black
Definition: rwBIORAD.h:19
writeBIORAD
int writeBIORAD(Bimage *p)
Writing a BioRad image file format.
Definition: rwBIORAD.cpp:99
BIORADhead::white
short white
Definition: rwBIORAD.h:20
BIORADhead::color
short color
Definition: rwBIORAD.h:25
BIORADhead::black2
short black2
Definition: rwBIORAD.h:27
BIORADhead::lens
short lens
Definition: rwBIORAD.h:31
BIORADhead::pad3
short pad3
Definition: rwBIORAD.h:30
BIORADhead::mark
short mark
Definition: rwBIORAD.h:24
BIORADhead::pad4
short pad4[3]
Definition: rwBIORAD.h:33
rwimg.h
Header file for 2D and 3D image I/O.
BIORADhead::magic
short magic
Definition: rwBIORAD.h:26
BIORADhead::nz
short nz
Definition: rwBIORAD.h:18
BIORADhead::white2
short white2
Definition: rwBIORAD.h:28
BIORADhead::nx
short nx
Definition: rwBIORAD.h:16