| Bsoft 2.0.5 Bernard's software package

rwimg.h
Go to the documentation of this file.
1
9 #include "Bimage.h"
10 #include "Vector3.h"
11 #include "View.h"
12 #include "UnitCell.h"
13
14 #include <fstream>
15
16 #define SWAPTRIG 65535 // Threshold file z size above which bytes are swapped
17
18 // Function prototypes
19 Bimage* read_img(char* filename, int readdata, int img_select);
20 Bimage* read_img(Bstring filename, int readdata, int img_select);
21 Bimage* read_img(string filename, int readdata, int img_select);
22 int write_img(const char* filename, Bimage* p, int compression);
23 int write_img(Bstring filename, Bimage* p, int compression);
24 int write_img(string filename, Bimage* p, int compression);
25 int img_convert_fourier(Bimage* p, FourierType newtransform);
26
Bimage.h
Header file for image class.
FourierType
FourierType
Fourier transform format specifier.
Definition: Bimage.h:39
read_img
Bimage * read_img(char *filename, int readdata, int img_select)
General driver function to read multiple image formats.
Definition: rwimg.cpp:76
img_convert_fourier
int img_convert_fourier(Bimage *p, FourierType newtransform)
Converts Fourier transform types.
Definition: rwimg.cpp:556
Bimage
General image parameter class.
Definition: Bimage.h:163
write_img
int write_img(const char *filename, Bimage *p, int compression)
General driver function to write multiple image formats.
Definition: rwimg.cpp:280
Bstring
Definition: Bstring.h:29
UnitCell.h
Header file for unit cell functions.
Vector3.h
Class for 3-value vectors.
View.h
View object.