Class to read EM maps (3D) in Spider and Xmipp formats.
Inheritance diagram for IMP::em::SpiderMapReaderWriter: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 SpiderMapReaderWriter * | get_from (IMP::base::Object *o) |
Public Attributes | |
| String | filename_ |
| bool | force_reversed_ |
| bool | skip_extra_checkings_ |
| bool | skip_type_check_ |
| 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.
| [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 |
|
virtual |
Reads a map in Spider format and transfers the data and header.
| [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. |
Reimplemented from IMP::em::MapReaderWriter.
|
virtual |
Writes a map in Spider format from data and header.
| [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. |
Reimplemented from IMP::em::MapReaderWriter.