Xmipp  v3.23.11-Nereus
volume_initial_simulated_annealing.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar S. Sorzano (coss@cnb.csic.es)
4  *
5  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20  * 02111-1307 USA
21  *
22  * All comments concerning this program package may be sent to the
23  * e-mail address 'xmipp@cnb.csic.es'
24  ***************************************************************************/
25 
26 #ifndef __VOLUME_INITIAL_H_H
27 #define __VOLUME_INITIAL_H_H
28 
29 #include <core/xmipp_program.h>
30 #include <core/xmipp_threads.h>
31 #include "reconstruct_fourier.h"
33 
37 
40 {
41 public:
44 };
45 
47 {
48 public:
50  double rot, tilt;
51 };
52 
54 {
55 public:
57  double maxcc;
58 };
59 
62 {
63 public:
65  FileName fnIn, fnRoot, fnSym, fnInit;
66 
68  double T0;
69 
71  int NiterRandom, NiterGreedy;
72 
74  double rejection;
75 
77  int Nthr;
78 
81 
84 
87 
88 public: // Internal members
90 
91  // Set of images in the gallery, it should be a metadata but metadatas do not support threads
92  std::vector<GalleryImage> mdGallery;
93 
94  // Set of input images
95  std::vector<InputImage> mdInp;
96 
97  // Filenames
98  FileName fnAngles, fnVolume, fnGallery, fnGalleryMetaData;
99 
100  // Images
102 
103  // Current iteration
104  int iter;
105 
106  // Array with information for the threads
108 
109  // Mutex to update MaxCC
111 
112  // Iteration statistics
114 public:
116  void readParams();
117 
119  void defineParams();
120 
122  void show();
123 
125  void run();
126 
128  void produceSideinfo();
129 
131  void reconstructCurrent();
132 
134  void generateProjections();
135 
137  void filterByCorrelation();
138 };
140 #endif