|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Class to deal with the header of Electron Microscopy images in IMP. More...
#include <IMP/em/ImageHeader.h>
Class to deal with the header of Electron Microscopy images in IMP.
Definition at line 28 of file 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. More... | |
Public Member Functions | |
| ImageHeader (float im) | |
| ImageHeader (img_type 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. | |
| 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 (float im) |
| void | set_image_type (img_type im) |
| Set the type of image. | |
| 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::Vector2D &v) |
| void | set_origin (const algebra::Vector3D &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. | |
Types of initialization of ImageHeader.
Definition at line 31 of file ImageHeader.h.
| IMP::em::ImageHeader::ImageHeader | ( | ) |
Definition at line 42 of file ImageHeader.h.
| IMP::em::ImageHeader::ImageHeader | ( | img_type | im | ) |
Definition at line 47 of file ImageHeader.h.
| IMP::em::ImageHeader::ImageHeader | ( | float | im | ) |
Definition at line 52 of file ImageHeader.h.
| void IMP::em::ImageHeader::clear | ( | ) |
Clear header data and sets a consistent header.
| void IMP::em::ImageHeader::do_show | ( | std::ostream & | out | ) | const |
Definition at line 70 of file ImageHeader.h.
| algebra::Vector3D IMP::em::ImageHeader::get_euler_angles | ( | ) | const |
Definition at line 282 of file ImageHeader.h.
| algebra::Vector3D IMP::em::ImageHeader::get_euler_angles1 | ( | ) | const |
Definition at line 287 of file ImageHeader.h.
| algebra::Vector3D IMP::em::ImageHeader::get_euler_angles2 | ( | ) | const |
Definition at line 292 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fAngle1 | ( | ) | const |
get rotation angle. (Xmipp compatibility)
Definition at line 190 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fAv | ( | ) | const |
Definition at line 230 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fFlag | ( | ) | const |
Gets the fFlag.
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 279 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fFmax | ( | ) | const |
Definition at line 224 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fFmin | ( | ) | const |
Definition at line 227 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fIangle | ( | ) | const |
Definition at line 242 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fIform | ( | ) | const |
Definition at line 218 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fIhist | ( | ) | const |
Definition at line 236 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fImami | ( | ) | const |
Definition at line 221 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fLabbyt | ( | ) | const |
Definition at line 265 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fLabrec | ( | ) | const |
Definition at line 239 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fLenbyt | ( | ) | const |
Definition at line 268 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_Flip | ( | ) | const |
Definition at line 202 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fNlabel | ( | ) | const |
Definition at line 215 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fNrec | ( | ) | const |
Definition at line 212 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_fSig | ( | ) | const |
Definition at line 233 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_image_type | ( | ) | const |
Definition at line 57 of file ImageHeader.h.
| unsigned int IMP::em::ImageHeader::get_number_of_columns | ( | ) | const |
Definition at line 176 of file ImageHeader.h.
| unsigned int IMP::em::ImageHeader::get_number_of_rows | ( | ) | const |
Definition at line 171 of file ImageHeader.h.
| unsigned int IMP::em::ImageHeader::get_number_of_slices | ( | ) | const |
Definition at line 164 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_object_pixel_size | ( | ) | const |
Definition at line 262 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_old_rot | ( | ) | const |
get rotation angle. (Xmipp compatibility)
Definition at line 184 of file ImageHeader.h.
| algebra::Vector3D IMP::em::ImageHeader::get_origin | ( | ) | const |
Definition at line 245 of file ImageHeader.h.
| bool IMP::em::ImageHeader::get_reversed | ( | ) | const |
Interaction with data.
Definition at line 161 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_Scale | ( | ) | const |
Definition at line 195 of file ImageHeader.h.
| float IMP::em::ImageHeader::get_Weight | ( | ) | const |
Definition at line 209 of file ImageHeader.h.
| bool IMP::em::ImageHeader::is_normalized | ( | ) | const |
Definition at line 320 of file ImageHeader.h.
| void IMP::em::ImageHeader::print_hard | ( | std::ostream & | out | ) | const |
Prints a reduced set of information (debugging purposes).
| int IMP::em::ImageHeader::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 IMP::em::ImageHeader::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 IMP::em::ImageHeader::set_euler_angles | ( | const algebra::Vector3D & | euler | ) |
Definition at line 297 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_euler_angles1 | ( | const algebra::Vector3D & | euler | ) |
Definition at line 304 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_euler_angles2 | ( | const algebra::Vector3D & | euler | ) |
Definition at line 313 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fAngle1 | ( | float | value | ) |
set rotation angle. (Xmipp compatibility)
Definition at line 193 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fAv | ( | float | value | ) |
Definition at line 231 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fFlag | ( | float | value | ) |
Definition at line 280 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fFmax | ( | float | value | ) |
Definition at line 225 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fFmin | ( | float | value | ) |
Definition at line 228 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fIangle | ( | float | value | ) |
Definition at line 243 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fIform | ( | float | value | ) |
Definition at line 219 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fIhist | ( | float | value | ) |
Definition at line 237 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fImami | ( | float | value | ) |
Definition at line 222 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fLabbyt | ( | float | value | ) |
Definition at line 266 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fLabrec | ( | float | value | ) |
Definition at line 240 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fLenbyt | ( | float | value | ) |
Definition at line 269 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_Flip | ( | float | value | ) |
Definition at line 207 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fNlabel | ( | float | value | ) |
Definition at line 216 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fNrec | ( | float | value | ) |
Definition at line 213 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_fSig | ( | float | value | ) |
Definition at line 234 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_header | ( | ) |
Sets a consistent header.
| void IMP::em::ImageHeader::set_image_type | ( | float | im | ) |
Definition at line 68 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_image_type | ( | img_type | im | ) |
Set the type of image.
| [in] | im | type 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 |
Definition at line 66 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_number_of_columns | ( | unsigned int | n | ) |
Definition at line 179 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_number_of_rows | ( | unsigned int | n | ) |
Definition at line 174 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_number_of_slices | ( | unsigned int | n | ) |
Definition at line 167 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_object_pixel_size | ( | float | value | ) |
Definition at line 263 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_old_rot | ( | float | value | ) |
set rotation angle. (Xmipp compatibility)
Definition at line 187 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_origin | ( | const algebra::Vector2D & | v | ) |
Definition at line 256 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_origin | ( | const algebra::Vector3D & | v | ) |
Definition at line 250 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_reversed | ( | bool | value | ) |
Definition at line 162 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_Scale | ( | float | value | ) |
Definition at line 197 of file ImageHeader.h.
| void IMP::em::ImageHeader::set_title | ( | String | newName | ) |
Set title of image in the header.
| void IMP::em::ImageHeader::set_Weight | ( | float | value | ) |
Definition at line 210 of file ImageHeader.h.
| void IMP::em::ImageHeader::show_projection_params | ( | std::ostream & | out | ) | const |
Shows only the projection parameters.
Definition at line 132 of file ImageHeader.h.
| void IMP::em::ImageHeader::write | ( | const String & | filename, |
| bool | force_reversed = false ) |
Writes the header of a EM image.
| void IMP::em::ImageHeader::write | ( | std::ofstream & | f, |
| bool | force_reversed = false ) |
Writes the header of a EM image to an output file stream.