27 #ifndef _PROG_ANGULAR_SPH_ALIGNMENT_GPU 28 #define _PROG_ANGULAR_SPH_ALIGNMENT_GPU 123 std::unique_ptr<CTFDescription>
ctf;
158 void show()
const override;
185 double rot,
double tilt,
double psi);
187 void updateCTFImage(
double defocusU,
double defocusV,
double angle);
191 double deltaDefocusV,
double deltaDefocusAngle);
206 std::vector<MDLabel> getLabelsForEmpty()
override {
void fillVectorTerms(int l1, int l2, Matrix1D< int > &vL1, Matrix1D< int > &vN, Matrix1D< int > &vL2, Matrix1D< int > &vM)
Zernike and SPH coefficients allocation.
MultidimArray< int > V_mask
Image< double > Vdeformed
Image< double > Ifilteredp
FileName fnOutDir
Output directory.
void deformVol(MultidimArray< double > &mVD, const MultidimArray< double > &mV, double &def, double rot, double tilt, double psi)
Deform a volumen using Zernike-Spherical harmonic basis.
virtual void createWorkFiles()
virtual void finishProcessing()
~ProgAngularSphAlignmentGpu()
Destructor.
AngularAlignmentGpu::AngularSphAlignment angularAlignGpu
void updateCTFImage(double defocusU, double defocusV, double angle)
virtual void createWorkFiles(bool resume, MetaData *md)
Image< double > Ifiltered
MultidimArray< int > mask2D
void numCoefficients(int l1, int l2, int &vecSize)
Length of coefficients vector.
void show() const override
Show.
double tranformImageSph(double *pclnm, double rot, double tilt, double psi, Matrix2D< double > &A, double deltaDefocusU, double deltaDefocusV, double deltaDefocusAngle)
void readParams()
Read argument from command line.
void minimizepos(int L1, int l2, Matrix1D< double > &steps)
Determine the positions to be minimize of a vector containing spherical harmonic coefficients.
double psi(const double x)
ProgAngularSphAlignmentGpu()
Empty constructor.
std::unique_ptr< CTFDescription > ctf
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
void defineParams()
Define parameters.
Matrix1D< double > steps_cp
std::unique_ptr< FourierFilter > FilterCTF
std::unique_ptr< FourierFilter > filter
virtual void writeImageParameters(const FileName &fnImg)