Xmipp
v3.23.11-Nereus
|
#include <project_crystal.h>
Public Member Functions | |
Crystal_Projection_Parameters () | |
void | read (const FileName &fn_crystal, double scale=1.0) |
void | write (const FileName &fn_crystal) |
Public Attributes | |
int | crystal_Xdim |
Crystal X dimension. More... | |
int | crystal_Ydim |
Crystal Y dimension. More... | |
bool | orthogonal |
Orthogonalize projections. More... | |
Matrix1D< double > | a |
Crystal vector a. More... | |
Matrix1D< double > | b |
Crustal vector b. More... | |
double | Nshift_avg |
Bias to apply to the magnitude shift. More... | |
double | Nshift_dev |
Standard deviation of the magnitude shift. More... | |
double | disappearing_th |
Disappearing threshold. More... | |
FileName | fn_shift |
file with shifts More... | |
MetaDataVec | DF_shift |
Document File for shifts. Order: H K x_SHIFT y_SHIFT z_SHIFT. More... | |
bool | DF_shift_bool |
is doc file with shifts available More... | |
Crystal Projecting parameters. This class reads a set of projection parameters in a file (see the user guide of the projection program for more information about the file structure) and extract the useful information from it. This class allows also to write in the same file format, for doing so you must first introduce the right values in the class fields, and the call to the procedure write.
A crystal is supposed to have two lattice vectors: a and b as follows
Definition at line 56 of file project_crystal.h.
Crystal_Projection_Parameters::Crystal_Projection_Parameters | ( | ) |
Empty constructor
Definition at line 32 of file project_crystal.cpp.
void Crystal_Projection_Parameters::read | ( | const FileName & | fn_crystal, |
double | scale = 1.0 |
||
) |
Read projection parameters from a file. An exception is thrown if the file is not found or any of the parameters is not found in the right place.
Definition at line 47 of file project_crystal.cpp.
void Crystal_Projection_Parameters::write | ( | const FileName & | fn_crystal | ) |
Write projection parameters to a file. The projection parameters are written into a file wth the same structure as always. If the file cannot be openned for output an exception is thrown.
Definition at line 99 of file project_crystal.cpp.
Matrix1D<double> Crystal_Projection_Parameters::a |
Crystal vector a.
Definition at line 66 of file project_crystal.h.
Matrix1D<double> Crystal_Projection_Parameters::b |
Crustal vector b.
Definition at line 68 of file project_crystal.h.
int Crystal_Projection_Parameters::crystal_Xdim |
Crystal X dimension.
Definition at line 60 of file project_crystal.h.
int Crystal_Projection_Parameters::crystal_Ydim |
Crystal Y dimension.
Definition at line 62 of file project_crystal.h.
MetaDataVec Crystal_Projection_Parameters::DF_shift |
Document File for shifts. Order: H K x_SHIFT y_SHIFT z_SHIFT.
Definition at line 78 of file project_crystal.h.
bool Crystal_Projection_Parameters::DF_shift_bool |
is doc file with shifts available
Definition at line 80 of file project_crystal.h.
double Crystal_Projection_Parameters::disappearing_th |
Disappearing threshold.
Definition at line 74 of file project_crystal.h.
FileName Crystal_Projection_Parameters::fn_shift |
file with shifts
Definition at line 76 of file project_crystal.h.
double Crystal_Projection_Parameters::Nshift_avg |
Bias to apply to the magnitude shift.
Definition at line 70 of file project_crystal.h.
double Crystal_Projection_Parameters::Nshift_dev |
Standard deviation of the magnitude shift.
Definition at line 72 of file project_crystal.h.
bool Crystal_Projection_Parameters::orthogonal |
Orthogonalize projections.
Definition at line 64 of file project_crystal.h.