IMP logo
IMP Reference Guide  2.20.0
The Integrative Modeling Platform
header_converters.h
Go to the documentation of this file.
1 /**
2  * \file IMP/em/header_converters.h
3  * \brief Functions to convert between ImageHeader and DensityHeader
4  * Copyright 2007-2022 IMP Inventors. All rights reserved.
5 */
6 
7 #ifndef IMPEM_HEADER_CONVERTERS_H
8 #define IMPEM_HEADER_CONVERTERS_H
9 
10 #include <IMP/em/em_config.h>
11 #include "ImageHeader.h"
12 #include "DensityHeader.h"
13 #include <string.h>
14 
15 IMPEM_BEGIN_NAMESPACE
16 
17 //! Function to transfer the (compatible) information content from ImageHeader
18 //! to DensityHeader
19 IMPEMEXPORT void ImageHeader_to_DensityHeader(const ImageHeader& h,
20  DensityHeader& header);
21 
22 //! Function to transfer the (compatible) information content from DensityHeader
23 //! to ImageHeader
24 IMPEMEXPORT void DensityHeader_to_ImageHeader(const DensityHeader& header,
25  ImageHeader& h);
26 
27 IMPEM_END_NAMESPACE
28 
29 #endif /* IMPEM_HEADER_CONVERTERS_H */
Metadata for a density file.
void ImageHeader_to_DensityHeader(const ImageHeader &h, DensityHeader &header)
void DensityHeader_to_ImageHeader(const DensityHeader &header, ImageHeader &h)
Header for EM images. Compatible with Spider and Xmipp formats Copyright 2007-2022 IMP Inventors...