$extrastylesheet
Olena
User documentation 2.1
An Image Processing Platform
Milena
Getting started
API Reference Manual
All Classes
Examples
Demos
Publications
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
adjust_duplicate.hh
1
// Copyright (C) 2008, 2009, 2012 EPITA Research and Development
2
// Laboratory (LRDE)
3
//
4
// This file is part of Olena.
5
//
6
// Olena is free software: you can redistribute it and/or modify it under
7
// the terms of the GNU General Public License as published by the Free
8
// Software Foundation, version 2 of the License.
9
//
10
// Olena is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with Olena. If not, see <http://www.gnu.org/licenses/>.
17
//
18
// As a special exception, you may use this file as part of a free
19
// software project without restriction. Specifically, if other files
20
// instantiate templates or use macros or inline functions from this
21
// file, or you compile this file and link it with other files to produce
22
// an executable, this file does not by itself cause the resulting
23
// executable to be covered by the GNU General Public License. This
24
// exception does not however invalidate any other reasons why the
25
// executable file might be covered by the GNU General Public License.
26
27
#ifndef MLN_EXTENSION_ADJUST_DUPLICATE_HH
28
# define MLN_EXTENSION_ADJUST_DUPLICATE_HH
29
36
37
# include <mln/extension/adjust.hh>
38
# include <mln/extension/duplicate.hh>
39
40
41
namespace
mln
42
{
43
44
namespace
extension
45
{
46
51
template
<
typename
I,
typename
W>
52
void
adjust_duplicate
(
const
Image<I>& ima,
53
const
Window<W>& win);
54
59
template
<
typename
I,
typename
W>
60
void
adjust_duplicate
(
const
Image<I>& ima,
61
const
Weighted_Window<W>& wwin);
62
67
template
<
typename
I,
typename
N>
68
void
adjust_duplicate
(
const
Image<I>& ima,
69
const
Neighborhood<N>& nbh);
70
75
template
<
typename
I>
76
void
adjust_duplicate
(
const
Image<I>& ima,
77
unsigned
delta
);
78
79
80
81
# ifndef MLN_INCLUDE_ONLY
82
83
// Facades.
84
85
template
<
typename
I,
typename
W>
86
void
adjust_duplicate
(
const
Image<I>& ima,
87
const
Window<W>& win)
88
{
89
mln_trace(
"extension::adjust_duplicate"
);
90
extension::adjust
(ima, win);
91
extension::duplicate
(ima);
92
}
93
94
template
<
typename
I,
typename
W>
95
void
adjust_duplicate
(
const
Image<I>& ima,
96
const
Weighted_Window<W>& wwin)
97
{
98
mln_trace(
"extension::adjust_duplicate"
);
99
extension::adjust
(ima, wwin);
100
extension::duplicate
(ima);
101
}
102
103
template
<
typename
I,
typename
N>
104
void
adjust_duplicate
(
const
Image<I>& ima,
105
const
Neighborhood<N>& nbh)
106
{
107
mln_trace(
"extension::adjust_duplicate"
);
108
extension::adjust
(ima, nbh);
109
extension::duplicate
(ima);
110
}
111
112
template
<
typename
I>
113
void
adjust_duplicate
(
const
Image<I>& ima,
114
unsigned
delta
)
115
{
116
mln_trace(
"extension::adjust_duplicate"
);
117
extension::adjust
(ima, delta);
118
extension::duplicate
(ima);
119
}
120
121
122
# endif // ! MLN_INCLUDE_ONLY
123
124
}
// end of namespace mln::extension
125
126
}
// end of namespace mln
127
128
129
#endif // ! MLN_EXTENSION_ADJUST_DUPLICATE_HH
mln
extension
adjust_duplicate.hh
Copyright (C) 2012 EPITA Research and Development Laboratory (LRDE)