Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mia
2d
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-2013 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
37
NS_MIA_BEGIN
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
87
EXPORT_2D
C2DFVectorfield
get_nfg
(
const
C2DImage
& image);
88
89
NS_MIA_END
Generated on Tue Oct 15 2013 13:56:37 by
1.8.4