Xmipp  v3.23.11-Nereus
image_sort_by_statistics.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Authors: Carlos Oscar Sorzano (coss@cnb.csic.es)
3  * Javier Vargas (jvargas@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 _PROG_IMAGE_SORT
27 #define _PROG_IMAGE_SORT
28 
29 #include "core/xmipp_program.h"
30 #include "core/xmipp_filename.h"
31 #include "core/metadata_vec.h"
32 #include "data/basic_pca.h"
33 
38 {
39 public:
43 
44 public:
45  double cutoff, per;
46 
47  std::vector<PCAMahalanobisAnalyzer> pcaAnalyzer;
49 
50 public:
51  void clear();
52 
53  void readParams();
54 
55  void defineParams();
56 
57  //Method to obtain a zScore of each extracted particle. The process is based on a segmentation approach using
58  //the Spiral Phase Transform (SPT), then the respective binary image is fitted to an ellipse and we obtain the major
59  //and minor axis. Also a other coarser descriptor based on the image histogram is used to detect outliers. Additionally,
60  //the centroid of the normalized image (SPT) is used as a descriptor but with a very low weight in the zScore
61  //JavierVargas : September 2012 BCU
62  void processInputPrepareSPTH(MetaData &SF, bool trained);
63 
64  void run();
65 };
67 #endif
68 
void processInputPrepareSPTH(MetaData &SF, bool trained)
std::vector< PCAMahalanobisAnalyzer > pcaAnalyzer