Xmipp  v3.23.11-Nereus
volume_apply_deform_sph.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: David Herreros Calero dherreros@cnb.csic.es
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18  * 02111-1307 USA
19  *
20  * All comments concerning this program package may be sent to the
21  * e-mail address 'xmipp@cnb.uam.es'
22  ***************************************************************************/
23 
24 #ifndef _PROG_VOL_APPLY_SPH_DEFORM
25 #define _PROG_VOL_APPLY_SPH_DEFORM
26 
27 #include <core/xmipp_program.h>
28 #include <core/xmipp_image.h>
29 
30 
32 {
33 private:
35  FileName fn_vol;
36 
38  FileName fn_sph;
39 
41  FileName fn_out;
42 
44  std::vector<double> clnm;
45 
47  std::vector<double> basisParams;
48 
50  Matrix1D<int> vL1;
51  Matrix1D<int> vN;
52  Matrix1D<int> vL2;
53  Matrix1D<int> vM;
54 
55 public:
57  void defineParams() override;
58 
60  void readParams() override;
61 
63  void show() const override;
64 
66  void run() override;
67 
69  std::string readNthLine(int N) const;
70 
72  std::vector<double> string2vector(std::string const &s) const;
73 
75  void fillVectorTerms();
76 
77 };
79 #endif
std::string readNthLine(int N) const
void show() const override
std::vector< double > string2vector(std::string const &s) const