Xmipp  v3.23.11-Nereus
align_tilt_pairs.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Sjors Scheres scheres@cnb.csic.es (2002)
4  * Carlos Oscar Sorzano (coss@cnb.csic.es)
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 
27 #ifndef ALIGN_TILT_PAIRS_H
28 #define ALIGN_TILT_PAIRS_H
29 
30 #include "core/xmipp_program.h"
31 #include "core/xmipp_filename.h"
32 
33 template<typename T>
34 class MultidimArray;
35 class CorrelationAux;
36 
42 {
43 public:
51  double max_shift;
53  bool do_stretch;
56 public:
58  void defineParams();
59 
61  void readParams();
62 
64  void show();
65 
67  void processImage();
68 
70  void run();
71 
73  bool centerTiltedImage(const MultidimArray<double> &imgU, bool flip,
74  double inPlaneU, double shiftXu, double shiftYu,
75  double alphaT, double alphaU, double tilt,
76  const MultidimArray<double> &imgT,
77  double &shiftX, double &shiftY, CorrelationAux &auxCorr);
78 };
80 #endif //ALIGN_TILT_PAIRS_H
bool centerTiltedImage(const MultidimArray< double > &imgU, bool flip, double inPlaneU, double shiftXu, double shiftYu, double alphaT, double alphaU, double tilt, const MultidimArray< double > &imgT, double &shiftX, double &shiftY, CorrelationAux &auxCorr)
Center one tilted image.
void run()
Run over the whole input metadata.
void processImage()
Process a single image.
void defineParams()
Define parameters in the command line.
void readParams()
Read parameters from the command line.