Xmipp
v3.23.11-Nereus
|
#include <volume_deform_sph.h>
Public Member Functions | |
void | defineParams () |
Define params. More... | |
void | readParams () |
Read arguments from command line. More... | |
void | show () |
Show. More... | |
double | distance (double *pclnm) |
Distance. More... | |
void | run () |
Run. More... | |
void | minimizepos (int l2, Matrix1D< double > &steps) const |
Determine the positions to be minimize of a vector containing spherical harmonic coefficients. More... | |
void | numCoefficients (int l1, int l2, int &nc) const |
Length of coefficients vector. More... | |
void | fillVectorTerms (int l1, int l2) |
Zernike and SPH coefficients allocation. More... | |
void | computeStrain () |
Compute strain. More... | |
void | writeVector (std::string const &outPath, Matrix1D< double > const &v, bool append) const |
Save vector to file. More... | |
Public Member Functions inherited from XmippProgram | |
const char * | getParam (const char *param, int arg=0) |
const char * | getParam (const char *param, const char *subparam, int arg=0) |
int | getIntParam (const char *param, int arg=0) |
int | getIntParam (const char *param, const char *subparam, int arg=0) |
double | getDoubleParam (const char *param, int arg=0) |
double | getDoubleParam (const char *param, const char *subparam, int arg=0) |
float | getFloatParam (const char *param, int arg=0) |
float | getFloatParam (const char *param, const char *subparam, int arg=0) |
void | getListParam (const char *param, StringVector &list) |
int | getCountParam (const char *param) |
bool | checkParam (const char *param) |
bool | existsParam (const char *param) |
void | addParamsLine (const String &line) |
void | addParamsLine (const char *line) |
ParamDef * | getParamDef (const char *param) const |
virtual void | quit (int exit_code=0) const |
virtual int | tryRun () |
void | initProgress (size_t total, size_t stepBin=60) |
void | setProgress (size_t value=0) |
void | endProgress () |
void | processDefaultComment (const char *param, const char *left) |
void | setDefaultComment (const char *param, const char *comment) |
virtual void | initComments () |
void | setProgramName (const char *name) |
void | addUsageLine (const char *line, bool verbatim=false) |
void | clearUsage () |
void | addExampleLine (const char *example, bool verbatim=true) |
void | addSeeAlsoLine (const char *seeAlso) |
void | addKeywords (const char *keywords) |
const char * | name () const |
virtual void | usage (int verb=0) const |
virtual void | usage (const String ¶m, int verb=2) |
int | version () const |
virtual void | show () const |
virtual void | read (int argc, const char **argv, bool reportErrors=true) |
virtual void | read (int argc, char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Public Attributes | |
FileName | fnVolI |
Volume to deform. More... | |
FileName | fnVolR |
Reference volume. More... | |
FileName | fnVolOut |
Output Volume (deformed input volume) More... | |
FileName | fnRoot |
Root name for several output files. More... | |
bool | analyzeStrain |
Save the deformation of each voxel for local strain and rotation analysis. More... | |
bool | optimizeRadius |
Radius optimization. More... | |
int | L1 |
Degree of Zernike polynomials and spherical harmonics. More... | |
int | L2 |
std::vector< double > | sigma |
Gaussian width to filter the volumes. More... | |
std::vector< Image< double > > | volumesI |
Image Vector. More... | |
std::vector< Image< double > > | volumesR |
double | Rmax |
Maximum radius for the transformation. More... | |
int | vecSize |
Coefficient vector size. More... | |
Image< double > | VI |
Images. More... | |
Image< double > | VR |
Image< double > | VO |
Image< double > | Gx |
Image< double > | Gy |
Image< double > | Gz |
std::vector< double > | absMaxR_vec |
Maxima of reference volumes (in absolute value) More... | |
double | deformation |
double | sumVI |
double | sumVD |
double | lambda |
bool | applyTransformation |
bool | saveDeformation |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Additional Inherited Members | |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Attributes inherited from XmippProgram | |
int | errorCode |
ProgramDef * | progDef |
Program definition and arguments parser. More... | |
std::map< String, CommentList > | defaultComments |
int | argc |
Original command line arguments. More... | |
const char ** | argv |
Sph Alignment Parameters.
Definition at line 38 of file volume_deform_sph.h.
void ProgVolDeformSph::computeStrain | ( | ) |
Compute strain.
Definition at line 514 of file volume_deform_sph.cpp.
|
virtual |
Define params.
Reimplemented from XmippProgram.
Definition at line 35 of file volume_deform_sph.cpp.
double ProgVolDeformSph::distance | ( | double * | pclnm | ) |
Distance.
Definition at line 256 of file volume_deform_sph.cpp.
void ProgVolDeformSph::fillVectorTerms | ( | int | l1, |
int | l2 | ||
) |
void ProgVolDeformSph::minimizepos | ( | int | l2, |
Matrix1D< double > & | steps | ||
) | const |
Determine the positions to be minimize of a vector containing spherical harmonic coefficients.
Definition at line 454 of file volume_deform_sph.cpp.
void ProgVolDeformSph::numCoefficients | ( | int | l1, |
int | l2, | ||
int & | nc | ||
) | const |
|
virtual |
Read arguments from command line.
Reimplemented from XmippProgram.
Definition at line 54 of file volume_deform_sph.cpp.
|
virtual |
Run.
Reimplemented from XmippProgram.
Definition at line 292 of file volume_deform_sph.cpp.
void ProgVolDeformSph::show | ( | ) |
Show.
Definition at line 90 of file volume_deform_sph.cpp.
void ProgVolDeformSph::writeVector | ( | std::string const & | outPath, |
Matrix1D< double > const & | v, | ||
bool | append | ||
) | const |
std::vector<double> ProgVolDeformSph::absMaxR_vec |
Maxima of reference volumes (in absolute value)
Definition at line 86 of file volume_deform_sph.h.
bool ProgVolDeformSph::analyzeStrain |
Save the deformation of each voxel for local strain and rotation analysis.
Definition at line 54 of file volume_deform_sph.h.
bool ProgVolDeformSph::applyTransformation |
Definition at line 97 of file volume_deform_sph.h.
double ProgVolDeformSph::deformation |
Definition at line 89 of file volume_deform_sph.h.
FileName ProgVolDeformSph::fnRoot |
Root name for several output files.
Definition at line 51 of file volume_deform_sph.h.
FileName ProgVolDeformSph::fnVolI |
Volume to deform.
Definition at line 42 of file volume_deform_sph.h.
FileName ProgVolDeformSph::fnVolOut |
Output Volume (deformed input volume)
Definition at line 48 of file volume_deform_sph.h.
FileName ProgVolDeformSph::fnVolR |
Reference volume.
Definition at line 45 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::Gx |
Definition at line 81 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::Gy |
Definition at line 82 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::Gz |
Definition at line 83 of file volume_deform_sph.h.
int ProgVolDeformSph::L1 |
Degree of Zernike polynomials and spherical harmonics.
Definition at line 60 of file volume_deform_sph.h.
int ProgVolDeformSph::L2 |
Definition at line 61 of file volume_deform_sph.h.
double ProgVolDeformSph::lambda |
Definition at line 94 of file volume_deform_sph.h.
bool ProgVolDeformSph::optimizeRadius |
Radius optimization.
Definition at line 57 of file volume_deform_sph.h.
double ProgVolDeformSph::Rmax |
Maximum radius for the transformation.
Definition at line 71 of file volume_deform_sph.h.
bool ProgVolDeformSph::saveDeformation |
Definition at line 100 of file volume_deform_sph.h.
std::vector<double> ProgVolDeformSph::sigma |
Gaussian width to filter the volumes.
Definition at line 64 of file volume_deform_sph.h.
double ProgVolDeformSph::sumVD |
Definition at line 91 of file volume_deform_sph.h.
double ProgVolDeformSph::sumVI |
Definition at line 90 of file volume_deform_sph.h.
int ProgVolDeformSph::vecSize |
Coefficient vector size.
Definition at line 75 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::VI |
Images.
Definition at line 78 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::VO |
Definition at line 80 of file volume_deform_sph.h.
std::vector<Image<double> > ProgVolDeformSph::volumesI |
Definition at line 67 of file volume_deform_sph.h.
std::vector<Image<double> > ProgVolDeformSph::volumesR |
Definition at line 68 of file volume_deform_sph.h.
Image<double> ProgVolDeformSph::VR |
Definition at line 79 of file volume_deform_sph.h.