Xmipp
v3.23.11-Nereus
xmipp
libraries
reconstruction
ctf_correct_wiener2d.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Authors: AUTHOR_NAME (jvargas@cnb.csic.es)
3
*
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 CTF_CORRECT_WIENER2D_H_
27
#define CTF_CORRECT_WIENER2D_H_
28
29
#include "
core/xmipp_metadata_program.h
"
30
#include "
data/ctf.h
"
31
#include "
data/wiener2d.h
"
32
#include "
core/xmipp_image.h
"
33
#include "
data/filters.h
"
34
38
class
ProgCorrectWiener2D
:
public
XmippMetadataProgram
39
{
40
41
42
public
:
43
/* Wiener class*/
44
Wiener2D
WF
;
45
46
bool
phase_flipped
;
47
49
double
pad
;
50
51
bool
isIsotropic
;
52
53
bool
correct_envelope
;
54
56
double
wiener_constant
;
57
59
double
sampling_rate
;
60
61
public
:
62
63
void
readParams
();
64
65
void
defineParams
();
66
67
public
:
68
69
void
processImage
(
const
FileName
&fnImg,
const
FileName
&fnImgOut,
const
MDRow
&rowIn,
MDRow
&rowOut);
70
71
void
generateWienerFilter
(
MultidimArray<double>
&
Mwien
,
CTFDescription
&
ctf
);
72
73
void
postProcess
();
74
public
:
75
Image<double>
img
;
76
77
CTFDescription
ctf
;
78
79
size_t
Ydim
,
Xdim
;
80
81
MultidimArray<double>
Mwien
;
82
MultidimArray<std::complex<double>
>
Faux
;
83
FourierTransformer
transformer
;
84
};
85
86
87
88
89
#endif
/* CTF_CORRECT_WIENER2D_H_ */
ProgCorrectWiener2D::generateWienerFilter
void generateWienerFilter(MultidimArray< double > &Mwien, CTFDescription &ctf)
MultidimArray< double >
xmipp_metadata_program.h
Wiener2D
Definition:
wiener2d.h:36
ProgCorrectWiener2D::phase_flipped
bool phase_flipped
Definition:
ctf_correct_wiener2d.h:46
ProgCorrectWiener2D::Xdim
size_t Xdim
Definition:
ctf_correct_wiener2d.h:79
ProgCorrectWiener2D::sampling_rate
double sampling_rate
Sampling rate.
Definition:
ctf_correct_wiener2d.h:59
ProgCorrectWiener2D::WF
Wiener2D WF
Definition:
ctf_correct_wiener2d.h:44
FileName
Definition:
xmipp_filename.h:65
wiener2d.h
ProgCorrectWiener2D::wiener_constant
double wiener_constant
Wiener filter constant.
Definition:
ctf_correct_wiener2d.h:56
FourierTransformer
Definition:
xmipp_fftw.h:60
ProgCorrectWiener2D::Faux
MultidimArray< std::complex< double > > Faux
Definition:
ctf_correct_wiener2d.h:82
ProgCorrectWiener2D::correct_envelope
bool correct_envelope
Definition:
ctf_correct_wiener2d.h:53
xmipp_image.h
ProgCorrectWiener2D::defineParams
void defineParams()
Definition:
ctf_correct_wiener2d.cpp:42
ProgCorrectWiener2D::readParams
void readParams()
Definition:
ctf_correct_wiener2d.cpp:30
ProgCorrectWiener2D::img
Image< double > img
Definition:
ctf_correct_wiener2d.h:75
ProgCorrectWiener2D::Ydim
size_t Ydim
Definition:
ctf_correct_wiener2d.h:79
ctf.h
ProgCorrectWiener2D::postProcess
void postProcess()
Definition:
ctf_correct_wiener2d.cpp:57
CTFDescription
Definition:
ctf.h:782
ProgCorrectWiener2D::transformer
FourierTransformer transformer
Definition:
ctf_correct_wiener2d.h:83
filters.h
ProgCorrectWiener2D::pad
double pad
Definition:
ctf_correct_wiener2d.h:49
XmippMetadataProgram
Definition:
xmipp_metadata_program.h:44
ProgCorrectWiener2D::Mwien
MultidimArray< double > Mwien
Definition:
ctf_correct_wiener2d.h:81
Image< double >
ProgCorrectWiener2D::processImage
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
Definition:
ctf_correct_wiener2d.cpp:96
ProgCorrectWiener2D::ctf
CTFDescription ctf
Definition:
ctf_correct_wiener2d.h:77
MDRow
Definition:
metadata_row_base.h:53
ProgCorrectWiener2D::isIsotropic
bool isIsotropic
Definition:
ctf_correct_wiener2d.h:51
ProgCorrectWiener2D
Definition:
ctf_correct_wiener2d.h:38
Generated by
1.8.13