Xmipp  v3.23.11-Nereus
wiener2d.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Javier Vargas (jvargas@cnb.csic.es)
4  * Authors: Jose Luis Vilas (jlvilas@cnb.csic.es)
5  *
6  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307 USA
22  *
23  * All comments concerning this program package may be sent to the
24  * e-mail address 'xmipp@cnb.csic.es'
25  ***************************************************************************/
26 
27 #ifndef _WIENER2D
28 #define _WIENER2D
29 
31 #include "data/ctf.h"
32 #include "core/xmipp_image.h"
33 #include "data/filters.h"
34 
35 //template<typename T>
36 class Wiener2D
37 {
38  public:
40 
42  double pad;
43 
45 
47 
50 
52  double sampling_rate;
53 
54  public:
56 
57  void applyWienerFilter(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut);
58 
60 
61  public:
63 
65 
66  size_t Ydim, Xdim;
67 
71 };
72 #endif
void applyWienerFilter(MultidimArray< double > &ptrImg, CTFDescription &ctf)
Definition: wiener2d.cpp:101
CTFDescription ctf
Definition: wiener2d.h:64
size_t Ydim
Definition: wiener2d.h:66
size_t Xdim
Definition: wiener2d.h:66
void wienerFilter(MultidimArray< double > &Mwien, CTFDescription &ctf)
Definition: wiener2d.cpp:30
bool isIsotropic
Definition: wiener2d.h:44
MultidimArray< double > Mwien
Definition: wiener2d.h:68
MultidimArray< std::complex< double > > Faux
Definition: wiener2d.h:69
double pad
Definition: wiener2d.h:42
double wiener_constant
Wiener filter constant.
Definition: wiener2d.h:49
bool phase_flipped
Definition: wiener2d.h:39
double sampling_rate
Sampling rate.
Definition: wiener2d.h:52
FourierTransformer transformer
Definition: wiener2d.h:70
bool correct_envelope
Definition: wiener2d.h:46
Image< double > img
Definition: wiener2d.h:62