32#ifndef eman__spiderio_h__
33#define eman__spiderio_h__ 1
78 static bool is_valid(
const void *first_block);
213 SpiderHeader *& hp,
int ISTACK,
int MAXIM=1,
int IMGNUM=1,
bool use_host_endian=
true);
227 size_t offset,
int img_index,
int max_nimg,
bool use_host_endian=
true);
237 void swap_data(
float *data,
size_t nitems);
Dict is a dictionary to store <string, EMObject> pair.
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Region defines a 2D or 3D rectangular region specified by its origin coordinates and all edges' sizes...
SPIDER: (System for Processing Image Data from Electron microscopy and Related fields) is an image pr...
int write_single_data(float *data, const Region *area, SpiderHeader *&hp, size_t offset, int img_index, int max_nimg, bool use_host_endian=true)
write a single image data
int get_nimg()
get the number of images in this stacked SPIDER image
SpiderIO(const string &fname, IOMode rw_mode=READ_ONLY)
virtual bool is_valid_spider(const void *first_block)
check the data block to see if it represents valid stacked SPIDER image file header
void swap_header(SpiderHeader *header)
void swap_data(float *data, size_t nitems)
bool is_single_image_format() const
Is this image format only storing 1 image or not.
static bool is_valid(const void *first_block)
int write_single_header(const Dict &dict, const Region *area, int image_index, size_t offset, SpiderHeader *&hp, int ISTACK, int MAXIM=1, int IMGNUM=1, bool use_host_endian=true)
write a SPIDER header to spider_file