Xmipp  v3.23.11-Nereus
volume_enhance_contrast.h
Go to the documentation of this file.
1 /***************************************************************************
2 *
3 * Authors: Carlos Oscar coss@cnb.csic.es (2010)
4 * Fernando Fuentes
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 VOLUME_ENHANCE_CONTRAST_H
28 #define VOLUME_ENHANCE_CONTRAST_H
29 
30 #include <string>
31 #include <data/morphology.h>
32 #include <data/filters.h>
33 #include <core/transformations.h>
34 #include <core/xmipp_program.h>
35 
36 
37 #include <queue>
38 #include <vector>
39 #include <iostream>
40 
41 
44 
48 {
49 public:
50  // Input/Output volumes
52 
53  // Confidence level for background identification
54  double alpha;
55 
56  // Lower intensity (%)
58 
59  // Remove the background
60  bool removeBg;
61 
62  // Save mask
64 
65 protected:
67  void defineParams();
68 
71  void readParams();
72 
73  void run();
74 
75 public:
78  void show();
79 
83 };
84 
85 #endif
void enhance(MultidimArray< double > &vol)