IMP logo

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

Inherits IMP::em::MapReaderWriter.


Public Member Functions

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

Data Fields

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] filename file to read
[in] skip_type_check if true, the check for type of image is skipped
[in] force_reversed if true, the reverse mode is enforced for reading and writting
[in] skip_extra_checkings if 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 
)

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

Parameters:
[in] filename file to read
[in] data pointer to the structure where to store the data
[in] header DensityHeader class where to store the info from the header.

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

Writes a map in Spider format from data and header.

Parameters:
[in] filename file to write
[in] data pointer to the structure where data are stored
[in] header DensityHeader class where the header info is stored data from the header.


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

Generated on Mon Mar 8 23:09:01 2010 for IMP by doxygen 1.5.8