Xmipp
v3.23.11-Nereus
xmipp
legacy
libraries
reconstruction
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
47
class
ProgVolumeEnhanceContrast
:
public
XmippProgram
48
{
49
public
:
50
// Input/Output volumes
51
FileName
fnIn
,
fnOut
;
52
53
// Confidence level for background identification
54
double
alpha
;
55
56
// Lower intensity (%)
57
double
lowerIntensity
;
58
59
// Remove the background
60
bool
removeBg
;
61
62
// Save mask
63
FileName
fnMask
;
64
65
protected
:
67
void
defineParams
();
68
71
void
readParams
();
72
73
void
run
();
74
75
public
:
78
void
show
();
79
82
void
enhance
(
MultidimArray< double >
& vol);
83
};
84
85
#endif
ProgVolumeEnhanceContrast::fnIn
FileName fnIn
Definition:
volume_enhance_contrast.h:51
MultidimArray< double >
ProgVolumeEnhanceContrast::alpha
double alpha
Definition:
volume_enhance_contrast.h:54
morphology.h
ProgVolumeEnhanceContrast::show
void show()
Definition:
volume_enhance_contrast.cpp:72
FileName
Definition:
xmipp_filename.h:65
transformations.h
xmipp_program.h
ProgVolumeEnhanceContrast::lowerIntensity
double lowerIntensity
Definition:
volume_enhance_contrast.h:57
ProgVolumeEnhanceContrast::enhance
void enhance(MultidimArray< double > &vol)
Definition:
volume_enhance_contrast.cpp:86
filters.h
ProgVolumeEnhanceContrast::readParams
void readParams()
Definition:
volume_enhance_contrast.cpp:51
ProgVolumeEnhanceContrast::fnMask
FileName fnMask
Definition:
volume_enhance_contrast.h:63
ProgVolumeEnhanceContrast::fnOut
FileName fnOut
Definition:
volume_enhance_contrast.h:51
ProgVolumeEnhanceContrast
Definition:
volume_enhance_contrast.h:47
XmippProgram
Definition:
xmipp_program.h:52
ProgVolumeEnhanceContrast::run
void run()
Definition:
volume_enhance_contrast.cpp:63
ProgVolumeEnhanceContrast::removeBg
bool removeBg
Definition:
volume_enhance_contrast.h:60
ProgVolumeEnhanceContrast::defineParams
void defineParams()
Definition:
volume_enhance_contrast.cpp:32
Generated by
1.8.13