My Project
2d/nfg.hh
Go to the documentation of this file.
1 /* -*- mia-c++ -*-
2  *
3  * This file is part of MIA - a toolbox for medical image analysis
4  * Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
5  *
6  * MIA is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with MIA; if not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #include <mia/2d/image.hh>
22 
23 /*
24  This code implements the functions needed to support the normalized gradient field
25  cost function.
26 
27  for details on this cost function see
28  Eldad Haber and Jan Modersitzki,
29  "Beyond Mutual Information: A Simple and Robust Alternative"
30  Bildverarbeitung f\"ur die Medizin 2005,
31  Eds: Hans-Peter Meinzer, Heinz Handels, Alexander Horsch and Thomas Tolxdorff, 350--354,
32  Springer Berlin Heidelberg, 2005
33 */
34 
35 
36 
38 
45 EXPORT_2D float get_noise_level(const C2DImage& image);
46 
47 
53 EXPORT_2D float get_jump_level(const C2DImage& image);
54 
55 
63 EXPORT_2D float get_jump_level(const C2DImage& image, float noise_level);
64 
71 EXPORT_2D C2DFVectorfield get_nfg_n(const C2DImage& image, float noise_level);
72 
79 EXPORT_2D C2DFVectorfield get_nfg_j(const C2DImage& image, float jump_level2);
80 
88 
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
get_nfg_n
EXPORT_2D C2DFVectorfield get_nfg_n(const C2DImage &image, float noise_level)
C2DImage
This is the base class for 2D images that can hold generic pixel data.
Definition: 2d/image.hh:47
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36
get_noise_level
EXPORT_2D float get_noise_level(const C2DImage &image)
get_jump_level
EXPORT_2D float get_jump_level(const C2DImage &image)
get_nfg_j
EXPORT_2D C2DFVectorfield get_nfg_j(const C2DImage &image, float jump_level2)
C2DFVectorfield
a 2D field of floating point single accuracy 2D vectors
Definition: 2d/vectorfield.hh:78
get_nfg
EXPORT_2D C2DFVectorfield get_nfg(const C2DImage &image)
image.hh
EXPORT_2D
#define EXPORT_2D
Definition: defines2d.hh:37