Xmipp
v3.23.11-Nereus
xmipp
libraries
reconstruction
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
37
class
ProgSortByStatistics
:
public
XmippProgram
38
{
39
public
:
40
FileName
fn
,
fn_out
,
fn_train
;
41
bool
addToInput
,
addFeatures
;
42
int
targetXdim
;
43
44
public
:
45
double
cutoff
,
per
;
46
47
std::vector<PCAMahalanobisAnalyzer>
pcaAnalyzer
;
48
MetaDataVec
SF
,
SFtrain
;
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
ProgSortByStatistics::defineParams
void defineParams()
Definition:
image_sort_by_statistics.cpp:51
xmipp_filename.h
ProgSortByStatistics::fn
FileName fn
Definition:
image_sort_by_statistics.h:40
metadata_vec.h
ProgSortByStatistics::targetXdim
int targetXdim
Definition:
image_sort_by_statistics.h:42
ProgSortByStatistics::processInputPrepareSPTH
void processInputPrepareSPTH(MetaData &SF, bool trained)
Definition:
image_sort_by_statistics.cpp:85
MetaData
Definition:
metadata_base.h:176
ProgSortByStatistics::cutoff
double cutoff
Definition:
image_sort_by_statistics.h:45
ProgSortByStatistics::per
double per
Definition:
image_sort_by_statistics.h:45
ProgSortByStatistics::SF
MetaDataVec SF
Definition:
image_sort_by_statistics.h:48
FileName
Definition:
xmipp_filename.h:65
ProgSortByStatistics::SFtrain
MetaDataVec SFtrain
Definition:
image_sort_by_statistics.h:48
MetaDataVec
Definition:
metadata_vec.h:46
ProgSortByStatistics::clear
void clear()
Definition:
image_sort_by_statistics.cpp:34
ProgSortByStatistics::addFeatures
bool addFeatures
Definition:
image_sort_by_statistics.h:41
ProgSortByStatistics::run
void run()
Definition:
image_sort_by_statistics.cpp:373
xmipp_program.h
basic_pca.h
ProgSortByStatistics::pcaAnalyzer
std::vector< PCAMahalanobisAnalyzer > pcaAnalyzer
Definition:
image_sort_by_statistics.h:47
ProgSortByStatistics
Definition:
image_sort_by_statistics.h:37
ProgSortByStatistics::fn_out
FileName fn_out
Definition:
image_sort_by_statistics.h:40
ProgSortByStatistics::addToInput
bool addToInput
Definition:
image_sort_by_statistics.h:41
ProgSortByStatistics::readParams
void readParams()
Definition:
image_sort_by_statistics.cpp:39
ProgSortByStatistics::fn_train
FileName fn_train
Definition:
image_sort_by_statistics.h:40
XmippProgram
Definition:
xmipp_program.h:52
Generated by
1.8.13