IMP logo
Public Member Functions | Static Public Member Functions | Public Attributes
IMP::em::SpiderMapReaderWriter Class Reference

Detailed Description

Class to read EM maps (3D) in Spider and Xmipp formats.

Note:
: Compatible only with Xmipp 2.2 and Spider floating point maps
: A DensityHeader class must be provided
+ Inheritance diagram for IMP::em::SpiderMapReaderWriter:

List of all members.

Public Member Functions

 SpiderMapReaderWriter ()
 SpiderMapReaderWriter (String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings)
 Full constructor.
void read (const char *filename, float **data, DensityHeader &header)
 Reads a map in Spider format and transfers the data and header.
void write (const char *filename, const float *data, const DensityHeader &header)
 Writes a map in Spider format from data and header.

Static Public Member Functions

static SpiderMapReaderWriterget_from (IMP::base::Object *o)

Public Attributes

String filename_
bool force_reversed_
bool skip_extra_checkings_
bool skip_type_check_

Constructor & Destructor Documentation

IMP::em::SpiderMapReaderWriter::SpiderMapReaderWriter ( )

Empty constructor. It does not force reversed header and does not skip any of the tests

IMP::em::SpiderMapReaderWriter::SpiderMapReaderWriter ( String  filename,
bool  skip_type_check,
bool  force_reversed,
bool  skip_extra_checkings 
)

Full constructor.

Parameters:
[in]filenamefile to read
[in]skip_type_checkif true, the check for type of image is skipped
[in]force_reversedif true, the reverse mode is enforced for reading and writting
[in]skip_extra_checkingsif true, the most stringent tests for consistency of images are skipped when reading

Member Function Documentation

void IMP::em::SpiderMapReaderWriter::read ( const char *  filename,
float **  data,
DensityHeader header 
)
virtual

Reads a map in Spider format and transfers the data and header.

Parameters:
[in]filenamefile to read
[in]datapointer to the structure where to store the data
[in]headerDensityHeader class where to store the info from the header.

Reimplemented from IMP::em::MapReaderWriter.

void IMP::em::SpiderMapReaderWriter::write ( const char *  filename,
const float *  data,
const DensityHeader header 
)
virtual

Writes a map in Spider format from data and header.

Parameters:
[in]filenamefile to write
[in]datapointer to the structure where data are stored
[in]headerDensityHeader class where the header info is stored data from the header.

Reimplemented from IMP::em::MapReaderWriter.


The documentation for this class was generated from the following file:

Generated on Tue May 22 2012 23:33:34 for IMP by doxygen 1.8.1