Xmipp
v3.23.11-Nereus
|
#include <volume_deform_sph_gpu.h>
Public Member Functions | |
void | defineParams () |
Define params. More... | |
void | readParams () |
Read arguments from command line. More... | |
void | show () const override |
Show. More... | |
double | distance (double *pclnm) |
Distance. More... | |
void | run () |
Run. More... | |
void | minimizepos (int L1, int l2, Matrix1D< double > &steps) |
Determine the positions to be minimize of a vector containing spherical harmonic coefficients. More... | |
void | numCoefficients (int l1, int l2, int &vecSize) |
Length of coefficients vector. More... | |
void | fillVectorTerms (int l1, int l2, Matrix1D< int > &vL1, Matrix1D< int > &vN, Matrix1D< int > &vL2, Matrix1D< int > &vM) |
Zernike and SPH coefficients allocation. More... | |
void | computeStrain () |
Compute strain. More... | |
void | writeVector (std::string outPath, Matrix1D< double > v, bool append) |
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 | 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 | |
VolumeDeformSph | volDefSphGpu |
GPU computer. More... | |
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 |
Matrix1D< int > | vL1 |
Zernike and SPH coefficients vectors. More... | |
Matrix1D< int > | vN |
Matrix1D< int > | vL2 |
Matrix1D< int > | vM |
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... | |
Matrix1D< double > | clnm |
Matrix1D< double > | steps_cp |
unsigned | onesInSteps |
unsigned | Ncount |
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 39 of file volume_deform_sph_gpu.h.
void ProgVolumeDeformSphGpu::computeStrain | ( | ) |
Compute strain.
Definition at line 515 of file volume_deform_sph_gpu.cpp.
|
virtual |
Define params.
Reimplemented from XmippProgram.
Definition at line 34 of file volume_deform_sph_gpu.cpp.
double ProgVolumeDeformSphGpu::distance | ( | double * | pclnm | ) |
Distance.
Definition at line 99 of file volume_deform_sph_gpu.cpp.
void ProgVolumeDeformSphGpu::fillVectorTerms | ( | int | l1, |
int | l2, | ||
Matrix1D< int > & | vL1, | ||
Matrix1D< int > & | vN, | ||
Matrix1D< int > & | vL2, | ||
Matrix1D< int > & | vM | ||
) |
Zernike and SPH coefficients allocation.
Definition at line 467 of file volume_deform_sph_gpu.cpp.
void ProgVolumeDeformSphGpu::minimizepos | ( | int | L1, |
int | l2, | ||
Matrix1D< double > & | steps | ||
) |
Determine the positions to be minimize of a vector containing spherical harmonic coefficients.
Definition at line 417 of file volume_deform_sph_gpu.cpp.
void ProgVolumeDeformSphGpu::numCoefficients | ( | int | l1, |
int | l2, | ||
int & | vecSize | ||
) |
Length of coefficients vector.
Definition at line 453 of file volume_deform_sph_gpu.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from XmippProgram.
Definition at line 52 of file volume_deform_sph_gpu.cpp.
|
virtual |
Run.
Reimplemented from XmippProgram.
Definition at line 169 of file volume_deform_sph_gpu.cpp.
|
overridevirtual |
Show.
Reimplemented from XmippProgram.
Definition at line 83 of file volume_deform_sph_gpu.cpp.
void ProgVolumeDeformSphGpu::writeVector | ( | std::string | outPath, |
Matrix1D< double > | v, | ||
bool | append | ||
) |
std::vector<double> ProgVolumeDeformSphGpu::absMaxR_vec |
Maxima of reference volumes (in absolute value)
Definition at line 86 of file volume_deform_sph_gpu.h.
bool ProgVolumeDeformSphGpu::analyzeStrain |
Save the deformation of each voxel for local strain and rotation analysis.
Definition at line 58 of file volume_deform_sph_gpu.h.
bool ProgVolumeDeformSphGpu::applyTransformation |
Definition at line 107 of file volume_deform_sph_gpu.h.
Matrix1D<double> ProgVolumeDeformSphGpu::clnm |
Definition at line 89 of file volume_deform_sph_gpu.h.
double ProgVolumeDeformSphGpu::deformation |
Definition at line 101 of file volume_deform_sph_gpu.h.
FileName ProgVolumeDeformSphGpu::fnRoot |
Root name for several output files.
Definition at line 55 of file volume_deform_sph_gpu.h.
FileName ProgVolumeDeformSphGpu::fnVolI |
Volume to deform.
Definition at line 46 of file volume_deform_sph_gpu.h.
FileName ProgVolumeDeformSphGpu::fnVolOut |
Output Volume (deformed input volume)
Definition at line 52 of file volume_deform_sph_gpu.h.
FileName ProgVolumeDeformSphGpu::fnVolR |
Reference volume.
Definition at line 49 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::Gx |
Definition at line 83 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::Gy |
Definition at line 83 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::Gz |
Definition at line 83 of file volume_deform_sph_gpu.h.
int ProgVolumeDeformSphGpu::L1 |
Degree of Zernike polynomials and spherical harmonics.
Definition at line 64 of file volume_deform_sph_gpu.h.
int ProgVolumeDeformSphGpu::L2 |
Definition at line 64 of file volume_deform_sph_gpu.h.
double ProgVolumeDeformSphGpu::lambda |
Definition at line 104 of file volume_deform_sph_gpu.h.
unsigned ProgVolumeDeformSphGpu::Ncount |
Definition at line 98 of file volume_deform_sph_gpu.h.
unsigned ProgVolumeDeformSphGpu::onesInSteps |
Definition at line 95 of file volume_deform_sph_gpu.h.
bool ProgVolumeDeformSphGpu::optimizeRadius |
Radius optimization.
Definition at line 61 of file volume_deform_sph_gpu.h.
double ProgVolumeDeformSphGpu::Rmax |
Maximum radius for the transformation.
Definition at line 76 of file volume_deform_sph_gpu.h.
bool ProgVolumeDeformSphGpu::saveDeformation |
Definition at line 110 of file volume_deform_sph_gpu.h.
std::vector<double> ProgVolumeDeformSphGpu::sigma |
Gaussian width to filter the volumes.
Definition at line 70 of file volume_deform_sph_gpu.h.
Matrix1D<double> ProgVolumeDeformSphGpu::steps_cp |
Definition at line 92 of file volume_deform_sph_gpu.h.
double ProgVolumeDeformSphGpu::sumVD |
Definition at line 101 of file volume_deform_sph_gpu.h.
double ProgVolumeDeformSphGpu::sumVI |
Definition at line 101 of file volume_deform_sph_gpu.h.
int ProgVolumeDeformSphGpu::vecSize |
Coefficient vector size.
Definition at line 80 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::VI |
Images.
Definition at line 83 of file volume_deform_sph_gpu.h.
Matrix1D<int> ProgVolumeDeformSphGpu::vL1 |
Zernike and SPH coefficients vectors.
Definition at line 67 of file volume_deform_sph_gpu.h.
Matrix1D<int> ProgVolumeDeformSphGpu::vL2 |
Definition at line 67 of file volume_deform_sph_gpu.h.
Matrix1D<int> ProgVolumeDeformSphGpu::vM |
Definition at line 67 of file volume_deform_sph_gpu.h.
Matrix1D<int> ProgVolumeDeformSphGpu::vN |
Definition at line 67 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::VO |
Definition at line 83 of file volume_deform_sph_gpu.h.
VolumeDeformSph ProgVolumeDeformSphGpu::volDefSphGpu |
GPU computer.
Definition at line 43 of file volume_deform_sph_gpu.h.
std::vector<Image<double> > ProgVolumeDeformSphGpu::volumesI |
Definition at line 73 of file volume_deform_sph_gpu.h.
std::vector<Image<double> > ProgVolumeDeformSphGpu::volumesR |
Definition at line 73 of file volume_deform_sph_gpu.h.
Image<double> ProgVolumeDeformSphGpu::VR |
Definition at line 83 of file volume_deform_sph_gpu.h.