#include <fitsio.h>
Inheritance diagram for EMAN::FitsIO:
Public Member Functions | |
FitsIO (const string &filename, IOMode rw_mode=READ_ONLY) | |
~FitsIO () | |
int | read_ctf (Ctf &ctf, int image_index=0) |
Read CTF data from this image. | |
void | write_ctf (const Ctf &ctf, int image_index=0) |
Write CTF data to this image. | |
Static Public Member Functions | |
bool | is_valid (const void *first_block, off_t file_size=0) |
int | get_mode_size (int mm) |
int | to_em_datatype (int mrcmode) |
int | to_mrcmode (int em_datatype, int is_complex) |
Public Attributes | |
DEFINE_IMAGEIO_FUNC | |
Private Attributes | |
string | filename |
IOMode | rw_mode |
FILE * | fitsfile |
bool | is_big_endian |
bool | is_new_file |
bool | initialized |
int | dstart |
int | dtype |
int | nx |
int | ny |
int | nz |
A MRC image file stores 1D, 2D or 3D image. The image's dimensions and pixel type are defined in the header.
Definition at line 48 of file fitsio.h.
|
Definition at line 45 of file fitsio.cpp. References fitsfile, initialized, is_big_endian, EMAN::ByteOrder::is_host_big_endian(), and is_new_file. 00046 : filename(fits_filename), rw_mode(rw) 00047 { 00048 is_big_endian = ByteOrder::is_host_big_endian(); 00049 is_new_file = false; 00050 initialized = false; 00051 fitsfile=0; 00052 }
|
|
Definition at line 54 of file fitsio.cpp. References fitsfile. 00055 { 00056 if (fitsfile) { 00057 fclose(fitsfile); 00058 fitsfile = 0; 00059 } 00060 }
|
|
|
|
Definition at line 83 of file fitsio.cpp. Referenced by EMAN::EMUtil::get_image_type(). 00084 { 00085 ENTERFUNC; 00086 00087 if (!first_block) { 00088 return false; 00089 } 00090 00091 if (strncmp("SIMPLE ",(const char *)first_block,8)==0) return true; 00092 00093 EXITFUNC; 00094 return false; 00095 }
|
|
Read CTF data from this image.
Reimplemented from EMAN::ImageIO. Definition at line 236 of file fitsio.cpp. References EMAN::ImageIO::init(). 00237 { 00238 ENTERFUNC; 00239 init(); 00240 EXITFUNC; 00241 return 0; 00242 }
|
|
|
|
|
|
Write CTF data to this image.
Reimplemented from EMAN::ImageIO. Definition at line 244 of file fitsio.cpp. References EMAN::ImageIO::init(). 00245 { 00246 ENTERFUNC; 00247 init(); 00248 00249 EXITFUNC; 00250 }
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 71 of file fitsio.h. Referenced by FitsIO(). |
|
Definition at line 69 of file fitsio.h. Referenced by FitsIO(). |
|
Definition at line 70 of file fitsio.h. Referenced by FitsIO(). |
|
|
|
|
|
|
|
|