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