Xmipp  v3.23.11-Nereus
compare_density.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar coss@cnb.csic.es
4  * David Herreros Calero dherreros@cnb.csic.es
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19  * 02111-1307 USA
20  *
21  * All comments concerning this program package may be sent to the
22  * e-mail address 'xmipp@cnb.uam.es'
23  ***************************************************************************/
24 
25 #ifndef _PROG_COMPARE_DENSITY
26 #define _PROG_COMPARE_DENSITY
27 
28 #include <vector>
29 #include <CTPL/ctpl_stl.h>
30 #include "core/xmipp_program.h"
31 #include "core/xmipp_image.h"
32 #include "data/point3D.h"
33 
39 {
40 public:
44 
47 
49  double degstep;
50 
51 public:
54 
56  std::vector<double> tilt_v, rot_v;
57 
58 public:
60  void defineParams();
61 
63  void readParams();
64 
66  void show();
67 
69  void run();
70 
72  void computeCorrImage(int i);
73 
75  void compare(Image<double> &op1, const Image<double> &op2);
76 
77 private:
78  ctpl::thread_pool m_threadPool;
79 };
80 
82 #endif
void defineParams()
Define params.
std::vector< double > tilt_v
Rot and tilt vectors.
#define i
FileName fnImgOut
Output corelation image.
void readParams()
Read arguments from command line.
Image< double > V2
double degstep
Degree step.
void compare(Image< double > &op1, const Image< double > &op2)
Compare binary images.
Image< double > V1
Images.
Image< double > CorrImg
std::vector< double > rot_v
void computeCorrImage(int i)
Compute corr image.
FileName fnVol1
Volumes to compare.