Xmipp  v3.23.11-Nereus
volume_pca.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar coss@cnb.csic.es (2015)
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 #ifndef _PROG_VOLUME_PCA
26 #define _PROG_VOLUME_PCA
27 
28 #include "core/xmipp_image.h"
29 #include "core/xmipp_program.h"
30 #include "core/metadata_vec.h"
31 #include "data/basic_pca.h"
32 #include "data/mask.h"
33 
36 
37 
39 {
40 public:
46  int NPCA;
57 public:
58  // Metadata with volumes
60 
61  // Input volume
63 
64  // PCA analyzer
66 public:
68  void readParams();
69 
71  void show() const;
72 
74  void defineParams();
75 
77  void produce_side_info();
78 
80  void run();
81 };
83 #endif
void show() const
Show.
Definition: volume_pca.cpp:46
Definition: mask.h:360
FileName fnVols
Input set of volumes.
Definition: volume_pca.h:42
MetaDataVec mdVols
Definition: volume_pca.h:59
std::vector< String > StringVector
Definition: xmipp_strings.h:35
void produce_side_info()
Definition: volume_pca.cpp:79
FileName fnOutStack
Output PCA stack.
Definition: volume_pca.h:56
PCAMahalanobisAnalyzer analyzer
Definition: volume_pca.h:65
FileName fnBasis
Output basis.
Definition: volume_pca.h:50
void defineParams()
Define parameters.
Definition: volume_pca.cpp:65
void readParams()
Read arguments.
Definition: volume_pca.cpp:31
Mask mask
Mask.
Definition: volume_pca.h:48
Image< double > V
Definition: volume_pca.h:62
int NPCA
Number of PCA bases.
Definition: volume_pca.h:46
FileName fnAvgVol
Average volume.
Definition: volume_pca.h:54
FileName fnVolsOut
Output set of volumes.
Definition: volume_pca.h:44
StringVector listOfPercentiles
List of percentiles to generate volumes.
Definition: volume_pca.h:52