Bsoft  2.1.0
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 
FourierType
FourierType
Fourier transform format specifier.
Definition: Bimage.h:40
Bstring
Definition: Bstring.h:29
UnitCell.h
Header file for unit cell functions.
read_img
Bimage * read_img(char *filename, int readdata, int img_select)
General driver function to read multiple image formats.
Definition: rwimg.cpp:77
write_img
int write_img(const char *filename, Bimage *p, int compression)
General driver function to write multiple image formats.
Definition: rwimg.cpp:281
Bimage
General image parameter class.
Definition: Bimage.h:177
Vector3.h
Class for 3-value vectors.
Bimage.h
Header file for image class.
View.h
View object.
img_convert_fourier
int img_convert_fourier(Bimage *p, FourierType newtransform)
Converts Fourier transform types.
Definition: rwimg.cpp:552