#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 | |
static bool | is_valid (const void *first_block, off_t file_size=0) |
static int | get_mode_size (int mm) |
static int | to_em_datatype (int mrcmode) |
static 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.
|
|
|
|
Definition at line 83 of file fitsio.cpp. References ENTERFUNC, and EXITFUNC. 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 237 of file fitsio.cpp. References ENTERFUNC, EXITFUNC, and EMAN::ImageIO::init().
|
|
|
|
|
|
Write CTF data to this image.
Reimplemented from EMAN::ImageIO. Definition at line 245 of file fitsio.cpp. References ENTERFUNC, EXITFUNC, and EMAN::ImageIO::init().
|
|
|
|
|
|
|
|
|
|
|
|
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(). |
|
|
|
|
|
|
|
|