Xmipp  v3.23.11-Nereus
denoise.h
Go to the documentation of this file.
1 /***************************************************************************
2 *
3 * Authors: Carlos Oscar coss@cnb.csic.es (2002)
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 DENOISE_H
27 #define DENOISE_H
28 
29 #include "data/filters.h"
30 
33 
37 {
38 public:
39  typedef enum
40  {
46  } DenoisingType;
47 
53 
59  DenoisingType denoising_type;
60 
65  int scale;
66 
76 
79  double threshold;
80 
83  int R;
84 
87  double SNR0;
88 
91  double SNRF;
92 
96 
100 
104  int verbose;
105 
112 
113  static void defineParams(XmippProgram *program);
114  void readParams(XmippProgram *program);
115 
116 public:
120 
123  WaveletFilter();
124 
129  void produceSideInfo();
130 
131  void show();
132 
135  void apply(MultidimArray< double >& img);
136 
141 };
142 
143 #endif
int output_scale
Definition: denoise.h:75
static void defineParams(XmippProgram *program)
Definition: denoise.cpp:49
bool dont_denoise
Definition: denoise.h:111
String DWT_type
Definition: denoise.h:52
void readParams(XmippProgram *program)
Definition: denoise.cpp:70
bool white_noise
Definition: denoise.h:95
double SNR0
Definition: denoise.h:87
double threshold
Definition: denoise.h:79
bool adjust_range
Definition: denoise.h:99
void denoiseAvgBayesian(MultidimArray< double > &vol)
Definition: denoise.cpp:246
void apply(MultidimArray< double > &img)
Definition: denoise.cpp:149
void produceSideInfo()
Definition: denoise.cpp:103
void show()
Definition: denoise.cpp:116
std::string String
Definition: xmipp_strings.h:34
DenoisingType denoising_type
Definition: denoise.h:59
double SNRF
Definition: denoise.h:91
Matrix1D< double > estimatedS
Definition: denoise.h:119