Xmipp
v3.23.11-Nereus
xmipp
libraries
reconstruction
classify_first_split3.h
Go to the documentation of this file.
1
/***************************************************************************
2
*
3
* Authors: Carlos Oscar Sanchez Sorzano coss@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_CLASSIFICATION_FIRST_SPLIT3
27
#define _PROG_CLASSIFICATION_FIRST_SPLIT3
28
29
#include "
core/metadata_vec.h
"
30
#include "
core/xmipp_filename.h
"
31
#include "
core/xmipp_image.h
"
32
#include "
core/xmipp_program.h
"
33
#include "
data/mask.h
"
34
#include "
data/fourier_projection.h
"
35
40
class
ProgClassifyFirstSplit3
:
public
XmippProgram
41
{
42
public
:
44
FileName
fnClasses
;
46
FileName
fnRoot
;
48
int
Niter
;
50
int
Nsamples
;
52
FileName
fnSym
;
54
bool
externalMask
;
56
Mask
mask
;
58
double
alpha
;
60
String
mpiCommand
;
61
bool
mpiUse
;
62
public
:
64
void
readParams
();
65
67
void
show
();
68
70
void
defineParams
();
71
73
void
run
();
74
75
void
updateVolume
(
const
std::vector<size_t> &objIds1,
const
FileName
&
fnOut
,
FourierProjector
&projector);
76
77
void
calculateProjectedIms
(
size_t
id
,
double
&corrI_P1,
double
&corrI_P2);
78
public
:
79
Image<double>
V
,
imgV
;
80
MultidimArray<double>
projV
;
81
int
Nvols
;
82
size_t
maskSize
;
83
double
sumCorrDiff
,
sum2CorrDiff
,
sumCorr1
,
sumCorr2
,
sum2Corr1
,
sum2Corr2
;
84
int
count1
,
count2
,
countChange
,
countTotal
;
85
MetaDataVec
md
;
86
Projection
PV
;
87
FourierProjector
*
projectorV1
, *
projectorV2
;
88
int
countSwap
,
countRandomSwap
,
countNormalSwap
;
89
};
91
#endif
ProgClassifyFirstSplit3::sum2Corr2
double sum2Corr2
Definition:
classify_first_split3.h:83
MultidimArray< double >
ProgClassifyFirstSplit3::run
void run()
Run.
Definition:
classify_first_split3.cpp:135
ProgClassifyFirstSplit3::countChange
int countChange
Definition:
classify_first_split3.h:84
ProgClassifyFirstSplit3::countRandomSwap
int countRandomSwap
Definition:
classify_first_split3.h:88
xmipp_filename.h
metadata_vec.h
ProgClassifyFirstSplit3::readParams
void readParams()
Read argument from command line.
Definition:
classify_first_split3.cpp:31
Mask
Definition:
mask.h:360
ProgClassifyFirstSplit3::maskSize
size_t maskSize
Definition:
classify_first_split3.h:82
ProgClassifyFirstSplit3::sumCorr2
double sumCorr2
Definition:
classify_first_split3.h:83
mask.h
ProgClassifyFirstSplit3::show
void show()
Show.
Definition:
classify_first_split3.cpp:45
ProgClassifyFirstSplit3::mpiUse
bool mpiUse
Definition:
classify_first_split3.h:61
ProgClassifyFirstSplit3::count1
int count1
Definition:
classify_first_split3.h:84
ProgClassifyFirstSplit3::sumCorrDiff
double sumCorrDiff
Definition:
classify_first_split3.h:83
ProgClassifyFirstSplit3::fnSym
FileName fnSym
Definition:
classify_first_split3.h:52
FileName
Definition:
xmipp_filename.h:65
MetaDataVec
Definition:
metadata_vec.h:46
ProgClassifyFirstSplit3::countTotal
int countTotal
Definition:
classify_first_split3.h:84
xmipp_image.h
ProgClassifyFirstSplit3::mask
Mask mask
Definition:
classify_first_split3.h:56
ProgClassifyFirstSplit3::defineParams
void defineParams()
Define parameters.
Definition:
classify_first_split3.cpp:58
ProgClassifyFirstSplit3::md
MetaDataVec md
Definition:
classify_first_split3.h:85
xmipp_program.h
fnOut
FileName fnOut
Definition:
image_operate.cpp:268
ProgClassifyFirstSplit3::count2
int count2
Definition:
classify_first_split3.h:84
FourierProjector
Definition:
fourier_projection.h:111
ProgClassifyFirstSplit3::Niter
int Niter
Definition:
classify_first_split3.h:48
ProgClassifyFirstSplit3::projV
MultidimArray< double > projV
Definition:
classify_first_split3.h:80
fourier_projection.h
ProgClassifyFirstSplit3::V
Image< double > V
Definition:
classify_first_split3.h:79
ProgClassifyFirstSplit3::calculateProjectedIms
void calculateProjectedIms(size_t id, double &corrI_P1, double &corrI_P2)
Definition:
classify_first_split3.cpp:98
ProgClassifyFirstSplit3::countSwap
int countSwap
Definition:
classify_first_split3.h:88
Projection
Definition:
fourier_projection.h:56
ProgClassifyFirstSplit3::projectorV2
FourierProjector * projectorV2
Definition:
classify_first_split3.h:87
ProgClassifyFirstSplit3::sumCorr1
double sumCorr1
Definition:
classify_first_split3.h:83
ProgClassifyFirstSplit3::sum2CorrDiff
double sum2CorrDiff
Definition:
classify_first_split3.h:83
Image< double >
String
std::string String
Definition:
xmipp_strings.h:34
ProgClassifyFirstSplit3::alpha
double alpha
Definition:
classify_first_split3.h:58
ProgClassifyFirstSplit3::updateVolume
void updateVolume(const std::vector< size_t > &objIds1, const FileName &fnOut, FourierProjector &projector)
Definition:
classify_first_split3.cpp:70
ProgClassifyFirstSplit3::mpiCommand
String mpiCommand
Definition:
classify_first_split3.h:60
ProgClassifyFirstSplit3::imgV
Image< double > imgV
Definition:
classify_first_split3.h:79
ProgClassifyFirstSplit3::Nvols
int Nvols
Definition:
classify_first_split3.h:81
ProgClassifyFirstSplit3::externalMask
bool externalMask
Definition:
classify_first_split3.h:54
ProgClassifyFirstSplit3::fnClasses
FileName fnClasses
Definition:
classify_first_split3.h:44
ProgClassifyFirstSplit3::fnRoot
FileName fnRoot
Definition:
classify_first_split3.h:46
ProgClassifyFirstSplit3::projectorV1
FourierProjector * projectorV1
Definition:
classify_first_split3.h:87
ProgClassifyFirstSplit3
Definition:
classify_first_split3.h:40
XmippProgram
Definition:
xmipp_program.h:52
ProgClassifyFirstSplit3::sum2Corr1
double sum2Corr1
Definition:
classify_first_split3.h:83
ProgClassifyFirstSplit3::countNormalSwap
int countNormalSwap
Definition:
classify_first_split3.h:88
ProgClassifyFirstSplit3::Nsamples
int Nsamples
Definition:
classify_first_split3.h:50
ProgClassifyFirstSplit3::PV
Projection PV
Definition:
classify_first_split3.h:86
Generated by
1.8.13