32#ifndef eman__imagicio_h__
33#define eman__imagicio_h__ 1
75 static bool is_valid(
const void *first_block);
179 void write_ctf(
const Ctf *
const ctf,
int image_index = 0);
Ctf is the base class for all CTF model.
ImageIO classes are designed for reading/writing various electron micrography image formats,...
IMAGIC-5 Header File Format.
size_t get_datatype_size(DataType t)
bool is_single_image_format() const
Is this image format only storing 1 image or not.
ImagicIO(const string &fname, IOMode rw_mode=READ_ONLY)
static const char * REAL_TYPE_MAGIC
DataType get_datatype_from_name(const char *name)
@ IMAGIC_FFT_FLOAT_COMPLEX
int get_nimg()
Return the number of images in this image file.
static bool is_valid(const void *first_block)
static const char * HED_EXT
void make_header_host_endian(ImagicHeader &hed)
int to_em_datatype(DataType t)
static const char * IMG_EXT
Ctf * read_ctf(const ImagicHeader &hed) const
the Ctf object is a EMAN1Ctf object.
void swap_header(ImagicHeader &hed)
static const char * CTF_MAGIC
void write_ctf(const Ctf *const ctf, int image_index=0)