Xmipp  v3.23.11-Nereus
reconstruct_art_pseudo.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar Sorzano coss@cnb.csic.es
4  * Slavica Jonic Slavica.Jonic@impmc.jussieu.fr
5  *
6  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307 USA
22  *
23  * All comments concerning this program package may be sent to the
24  * e-mail address 'xmipp@cnb.csic.es'
25  ***************************************************************************/
26 
30 
31 #include "core/matrix1d.h"
32 #include "core/matrix2d.h"
33 #include "core/metadata_vec.h"
34 #include "core/xmipp_program.h"
35 #include "core/xmipp_filename.h"
36 
37 template<typename T>
38 class MultidimArray;
39 
42 {
43 public:
46 
49 
52 
55 
57  double lambdaART;
58 
60  int Nit;
61 
63  double sigma;
64 
66  double sampling;
67 public:
69  void defineParams();
70 
72  void readParams();
73 
75  void show() const;
76 
78  void produceSideInfo();
79 
81  void run();
82 
84  void writePseudo();
85 
87  double ART_single_step(const MultidimArray<double> &Iexp,
88  double rot, double tilt, double psi, double shiftX, double shiftY,
89  const std::vector<double> &lambda);
90 public:
91  // Input images
93 
94  // Atomic positions
95  std::vector< Matrix1D<double> > atomPosition;
96 
97  // Atomic weights
98  std::vector< double > atomWeight;
99 
100  // Gaussian projection table
102 
103  // Gaussian projection2 table
105 
106  // NMA modes
107  std::vector < Matrix2D<double> > NMA;
108 };
Matrix1D< double > gaussianProjectionTable
int Nit
Number of iterations.
double sigma
Sigma of atoms.
double * lambda
std::vector< double > atomWeight
double sampling
Sampling rate.
std::vector< Matrix2D< double > > NMA
double lambdaART
Lambda.
Matrix1D< double > gaussianProjectionTable2
FileName fnRoot
Output filename.
FileName fnDoc
Selfile with the input images.
double psi(const double x)
FileName fnPseudo
Pseudoatom filename.
FileName fnNMA
Selfile with the input NMAs.
std::vector< Matrix1D< double > > atomPosition
double ART_single_step(const MultidimArray< double > &Iexp, double rot, double tilt, double psi, double shiftX, double shiftY, const std::vector< double > &lambda)