Xmipp
v3.23.11-Nereus
xmipp
legacy
libraries
reconstruction
tomo_extract_subvolume.h
Go to the documentation of this file.
1
/***************************************************************************
2
*
3
* Authors: Sjors Scheres scheres@cnb.csic.es (2010)
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 _TOMO_EXTRACT_SUBVOLUME_H
27
#define _TOMO_EXTRACT_SUBVOLUME_H
28
29
#include <
core/xmipp_fftw.h
>
30
#include <
core/xmipp_fft.h
>
31
#include <
core/args.h
>
32
#include <
core/xmipp_funcs.h
>
33
#include <
core/metadata_vec.h
>
34
#include <
core/xmipp_image.h
>
35
#include <
core/geometry.h
>
36
#include <
data/filters.h
>
37
#include <
data/mask.h
>
38
#include <
data/ctf.h
>
39
#include <
data/sampling.h
>
40
#include <
core/symmetries.h
>
41
#include "
symmetrize.h
"
42
#include <pthread.h>
43
#include <vector>
44
49
class
ProgTomoExtractSubvolume
:
public
XmippMetadataProgram
50
{
51
public
:
53
FileName
fn_doc
,
fn_root
,
fn_sym
,
fn_missing
,
fn_mask
,
fn_aux
;
54
56
int
size
;
57
59
Matrix1D<double>
center_ref
;
60
62
std::vector<Matrix1D<double> >
centers_subvolumes
;
63
std::vector<Matrix2D<double> >
rotations_subvolumes
;
64
66
int
nr_exp_images
;
67
69
int
nr_output_volumes
;
70
71
// Metadata with input volumes names and their alignment parameters
72
//MetaData DF;
73
74
// Docfile with output subvolumes names and their alignment parameters
75
// This file can be fed directly to ml_tomo again...
76
MetaDataVec
DFout
;
77
78
// Selfile with output subvolumes
79
//MetaData SFout;
80
82
double
mindist
;
83
84
// Symmetry setup
85
int
symmetry
,
sym_order
;
86
SymList
SL
;
87
88
//Some local variables
89
Image<double>
vol
,
volout
;
90
Matrix1D<double>
center
,
doccenter
;
91
Matrix2D<double>
A
,
R
,
I
;
92
double
rot
,
tilt
,
psi
,
rotp
,
tiltp
,
psip
;
93
int
x0
,
xF
;
94
95
public
:
96
98
void
defineParams
();
99
101
void
readParams
();
102
104
void
show
();
105
106
void
processImage
(
const
FileName
&fnImg,
const
FileName
&fnImgOut,
const
MDRow
&rowIn,
MDRow
&rowOut);
107
108
void
postProcess
();
109
void
preProcess
();
110
111
112
//void processImage(int imgno_start, int imgno_end);
113
114
};
116
#endif
SymList
Definition:
symmetries.h:138
ProgTomoExtractSubvolume::x0
int x0
Definition:
tomo_extract_subvolume.h:93
ProgTomoExtractSubvolume::psi
double psi
Definition:
tomo_extract_subvolume.h:92
ProgTomoExtractSubvolume::DFout
MetaDataVec DFout
Definition:
tomo_extract_subvolume.h:76
ProgTomoExtractSubvolume::rot
double rot
Definition:
tomo_extract_subvolume.h:92
ProgTomoExtractSubvolume::vol
Image< double > vol
Definition:
tomo_extract_subvolume.h:89
ProgTomoExtractSubvolume::nr_exp_images
int nr_exp_images
Definition:
tomo_extract_subvolume.h:66
ProgTomoExtractSubvolume::processImage
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
Definition:
tomo_extract_subvolume.cpp:222
metadata_vec.h
ProgTomoExtractSubvolume::preProcess
void preProcess()
Definition:
tomo_extract_subvolume.cpp:153
xmipp_funcs.h
ProgTomoExtractSubvolume::nr_output_volumes
int nr_output_volumes
Definition:
tomo_extract_subvolume.h:69
mask.h
ProgTomoExtractSubvolume::symmetry
int symmetry
Definition:
tomo_extract_subvolume.h:85
ProgTomoExtractSubvolume::centers_subvolumes
std::vector< Matrix1D< double > > centers_subvolumes
Definition:
tomo_extract_subvolume.h:62
ProgTomoExtractSubvolume::sym_order
int sym_order
Definition:
tomo_extract_subvolume.h:85
ProgTomoExtractSubvolume::size
int size
Definition:
tomo_extract_subvolume.h:56
ProgTomoExtractSubvolume::fn_aux
FileName fn_aux
Definition:
tomo_extract_subvolume.h:53
ProgTomoExtractSubvolume::psip
double psip
Definition:
tomo_extract_subvolume.h:92
ProgTomoExtractSubvolume::fn_missing
FileName fn_missing
Definition:
tomo_extract_subvolume.h:53
sampling.h
FileName
Definition:
xmipp_filename.h:65
ProgTomoExtractSubvolume::I
Matrix2D< double > I
Definition:
tomo_extract_subvolume.h:91
ProgTomoExtractSubvolume::R
Matrix2D< double > R
Definition:
tomo_extract_subvolume.h:91
MetaDataVec
Definition:
metadata_vec.h:46
Matrix2D< double >
ProgTomoExtractSubvolume::rotp
double rotp
Definition:
tomo_extract_subvolume.h:92
xmipp_image.h
ProgTomoExtractSubvolume::SL
SymList SL
Definition:
tomo_extract_subvolume.h:86
ProgTomoExtractSubvolume::fn_sym
FileName fn_sym
Definition:
tomo_extract_subvolume.h:53
ProgTomoExtractSubvolume::readParams
void readParams()
Read arguments from command line.
Definition:
tomo_extract_subvolume.cpp:107
ProgTomoExtractSubvolume::tilt
double tilt
Definition:
tomo_extract_subvolume.h:92
ProgTomoExtractSubvolume
Definition:
tomo_extract_subvolume.h:49
ctf.h
ProgTomoExtractSubvolume::postProcess
void postProcess()
Definition:
tomo_extract_subvolume.cpp:349
ProgTomoExtractSubvolume::defineParams
void defineParams()
Define the arguments accepted.
Definition:
tomo_extract_subvolume.cpp:31
xmipp_fftw.h
ProgTomoExtractSubvolume::mindist
double mindist
Definition:
tomo_extract_subvolume.h:82
ProgTomoExtractSubvolume::rotations_subvolumes
std::vector< Matrix2D< double > > rotations_subvolumes
Definition:
tomo_extract_subvolume.h:63
ProgTomoExtractSubvolume::fn_mask
FileName fn_mask
Definition:
tomo_extract_subvolume.h:53
filters.h
symmetrize.h
ProgTomoExtractSubvolume::A
Matrix2D< double > A
Definition:
tomo_extract_subvolume.h:91
symmetries.h
ProgTomoExtractSubvolume::tiltp
double tiltp
Definition:
tomo_extract_subvolume.h:92
args.h
XmippMetadataProgram
Definition:
xmipp_metadata_program.h:44
Matrix1D< double >
Image< double >
ProgTomoExtractSubvolume::fn_root
FileName fn_root
Definition:
tomo_extract_subvolume.h:53
ProgTomoExtractSubvolume::fn_doc
FileName fn_doc
Definition:
tomo_extract_subvolume.h:53
MDRow
Definition:
metadata_row_base.h:53
ProgTomoExtractSubvolume::center_ref
Matrix1D< double > center_ref
Definition:
tomo_extract_subvolume.h:59
geometry.h
ProgTomoExtractSubvolume::doccenter
Matrix1D< double > doccenter
Definition:
tomo_extract_subvolume.h:90
xmipp_fft.h
ProgTomoExtractSubvolume::volout
Image< double > volout
Definition:
tomo_extract_subvolume.h:89
ProgTomoExtractSubvolume::show
void show()
Show.
Definition:
tomo_extract_subvolume.cpp:125
ProgTomoExtractSubvolume::center
Matrix1D< double > center
Definition:
tomo_extract_subvolume.h:90
ProgTomoExtractSubvolume::xF
int xF
Definition:
tomo_extract_subvolume.h:93
Generated by
1.8.13