Xmipp  v3.23.11-Nereus
idr_xray_tomo.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Authors: Joaquin Oton (joton@cnb.csic.es)
3  *
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 IDR_XRAY_TOMO_H_
27 #define IDR_XRAY_TOMO_H_
28 
29 #include "project_xray.h"
30 #include "recons.h"
31 
36 
37 
38 class ProgIDRXrayTomo: public virtual XmippProgram
39 {
40 public:
41 
53 
54  // Microscope optics parameters
60  double psfThr;
61  // Input projections sampling
62  double sampling;
64  int nThr;
65 
66  // IDR Params
68  int itNum;
71 
72 
73  // Reconstruction method
74  enum
75  {
79  } reconsMethod;
80 
82 
89 
90 
91 protected:
92 
93  virtual void defineParams();
94  virtual void readParams();
95  void preRun();
96  void postRun();
97 
98 public:
99 
100  virtual void run();
101  void reconstruct(const FileName &fnProjs, const FileName &fnVol);
102  ProgReconsBase * createReconsProgram(const FileName &input, const FileName &output);
103 };
104 
105 
113 int reconsTomo3D(const MetaData& MD, const FileName& fnOut, const String& params = "");
114 
123 int reconsTomo3D(const FileName& fnAngles, const FileName& fnProjs,
124  const FileName& fnOut, const String& params = "");
125 
126 
128 #endif /* IDR_XRAY_TOMO_H_ */
int nThr
Number of threads;.
Definition: idr_xray_tomo.h:64
FileName fnInterAngles
Definition: idr_xray_tomo.h:48
int itNum
Number of iterations.
Definition: idr_xray_tomo.h:68
Image< double > muVol
Definition: idr_xray_tomo.h:83
FileName fnPSF
Xray Microscope PSF Parameters.
Definition: idr_xray_tomo.h:56
void reconstruct(const FileName &fnProjs, const FileName &fnVol)
FileName fnRootInter
Rootname for intermediate/exchange projections metadatas and files.
Definition: idr_xray_tomo.h:45
ProgReconsBase * createReconsProgram(const FileName &input, const FileName &output)
FileName fnInputProjMD
Metadafile with angles and projection file names.
Definition: idr_xray_tomo.h:43
virtual void defineParams()
XRayPSF psf
Xray PSF Object.
Definition: idr_xray_tomo.h:58
FileName fnOutVol
Reconstructed output volume file name.
Definition: idr_xray_tomo.h:50
XrayProjPhantom phantom
Definition: idr_xray_tomo.h:86
ProgReconsBase * reconsProgram
Definition: idr_xray_tomo.h:81
virtual void run()
virtual void readParams()
FileName fnStart
Initial volume.
Definition: idr_xray_tomo.h:52
MetaDataVec interProjMD
Definition: idr_xray_tomo.h:85
FileName fnOut
int reconsTomo3D(const MetaData &MD, const FileName &fnOut, const String &params="")
std::string String
Definition: xmipp_strings.h:34
double psfThr
threshold for psfSlabs
Definition: idr_xray_tomo.h:60
Projection proj
Definition: idr_xray_tomo.h:87
MetaDataVec projMD
Definition: idr_xray_tomo.h:84
FileName fnInterProjs
Definition: idr_xray_tomo.h:46
FileName fnInterProjsMD
Definition: idr_xray_tomo.h:47
ParallelTaskDistributor * td
Definition: idr_xray_tomo.h:88
Matrix1D< double > lambda_list
Relaxation parameter.
Definition: idr_xray_tomo.h:70
enum ProgIDRXrayTomo::@5 reconsMethod