IMP  2.0.0
The Integrative Modeling Platform
IMP::em::ImageHeader Class Reference

Class to deal with the header of Electron Microsocopy images in IMP. More...

#include <IMP/em/ImageHeader.h>

Public Types

enum  img_type {
  IMG_BYTE = 0, IMG_IMPEM = 1, IMG_INT = 9, VOL_BYTE = 2,
  VOL_IMPEM = 3, VOL_INT = 10, IMG_FOURIER = -1, VOL_FOURIER = -3
}
 Types of initialization of ImageHeader.
 

Public Member Functions

 ImageHeader (img_type im)
 
 ImageHeader (float im)
 
void clear ()
 Clear header data and sets a consistent header.
 
void do_show (std::ostream &out) const
 
algebra::Vector3D get_euler_angles () const
 
algebra::Vector3D get_euler_angles1 () const
 
algebra::Vector3D get_euler_angles2 () const
 
float get_fAngle1 () const
 get rotation angle. (Xmipp compatibility)
 
float get_fAv () const
 
float get_fFlag () const
 Gets the fFlag. More...
 
float get_fFmax () const
 
float get_fFmin () const
 
double get_fGeo_matrix (unsigned int i, unsigned int j) const
 
float get_fIangle () const
 
float get_fIform () const
 
float get_fIhist () const
 
float get_fImami () const
 
float get_fLabbyt () const
 
float get_fLabrec () const
 
float get_fLenbyt () const
 
float get_Flip () const
 
float get_fNlabel () const
 
float get_fNrec () const
 
float get_fSig () const
 
float get_image_type () const
 
unsigned int get_number_of_columns () const
 
unsigned int get_number_of_rows () const
 
unsigned int get_number_of_slices () const
 
float get_object_pixel_size () const
 
float get_old_rot () const
 get rotation angle. (Xmipp compatibility)
 
algebra::Vector3D get_origin () const
 
bool get_reversed () const
 Interaction with data.
 
float get_Scale () const
 
float get_Weight () const
 
bool is_normalized () const
 
void print_hard (std::ostream &out) const
 Prints a reduced set of information (debugging purposes)
 
int read (const String filename, bool skip_type_check=false, bool force_reversed=false, bool skip_extra_checkings=false)
 Reads the header of a EM image.
 
bool read (std::ifstream &f, bool skip_type_check=false, bool force_reversed=false, bool skip_extra_checkings=false)
 Reads the header of a EM image from an input file stream.
 
void set_date ()
 
void set_euler_angles (const algebra::Vector3D &euler)
 
void set_euler_angles1 (const algebra::Vector3D &euler)
 
void set_euler_angles2 (const algebra::Vector3D &euler)
 
void set_fAngle1 (float value)
 set rotation angle. (Xmipp compatibility)
 
void set_fAv (float value)
 
void set_fFlag (float value)
 
void set_fFmax (float value)
 
void set_fFmin (float value)
 
void set_fIangle (float value)
 
void set_fIform (float value)
 
void set_fIhist (float value)
 
void set_fImami (float value)
 
void set_fLabbyt (float value)
 
void set_fLabrec (float value)
 
void set_fLenbyt (float value)
 
void set_Flip (float value)
 
void set_fNlabel (float value)
 
void set_fNrec (float value)
 
void set_fSig (float value)
 
void set_header ()
 Sets a consistent header.
 
void set_image_type (img_type im)
 Set the type of image. More...
 
void set_image_type (float im)
 
void set_number_of_columns (unsigned int n)
 
void set_number_of_rows (unsigned int n)
 
void set_number_of_slices (unsigned int n)
 
void set_object_pixel_size (float value)
 
void set_old_rot (float value)
 set rotation angle. (Xmipp compatibility)
 
void set_origin (const algebra::Vector3D &v)
 
void set_origin (const algebra::Vector2D &v)
 
void set_reversed (bool value)
 
void set_Scale (float value)
 
void set_time ()
 
void set_title (String newName)
 Set title of image in the header.
 
void set_Weight (float value)
 
void show (std::ostream &out=std::cout) const
 
void show_projection_params (std::ostream &out) const
 Shows only the projection parameters.
 
void write (const String &filename, bool force_reversed=false)
 Writes the header of a EM image.
 
void write (std::ofstream &f, bool force_reversed=false)
 Writes the header of a EM image to an output file stream.
 

Detailed Description

Note
Compatible with SPIDER format

Definition at line 28 of file ImageHeader.h.

Member Function Documentation

float IMP::em::ImageHeader::get_fFlag ( ) const

fFlag contains the number of triads of Euler angles stored in the header (up to three). set_euler_angles2 makes fFlag=2, set_euler_angles1 makes fFlag=max(fFlag, 1), set_euler_angles does not change fFlag

Definition at line 299 of file ImageHeader.h.

void IMP::em::ImageHeader::set_image_type ( img_type  im)
Parameters
[in]imtype of image. Available values: IMG_BYTE = 0, IMG_IMPEM = 1,IMG_INT = 9, VOL_BYTE = 2, VOL_IMPEM = 3, VOL_INT = 10 , IMG_FOURIER = -1, VOL_FOURIER = -3
Note
No check is done for correctness of the value

Definition at line 65 of file ImageHeader.h.


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