URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-10-05 Simon Nivault <simon.nivault(a)lrde.epita.fr>
Make a only one specialization for line (instead of hline and vline).
* mln/level/median.hh: Update.
---
median.hh | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
Index: trunk/milena/mln/level/median.hh
===================================================================
--- trunk/milena/mln/level/median.hh (revision 1258)
+++ trunk/milena/mln/level/median.hh (revision 1259)
@@ -255,23 +255,14 @@
}
-# ifdef MLN_CORE_WIN_HLINE2D_HH
- template <typename I, typename O>
- void median_(const Image<I>& input, const win::hline2d& win, O&
output)
+# ifdef MLN_CORE_WIN_LINE_HH
+ template <typename I, typename M, unsigned i, typename C, typename O>
+ void median_(const Image<I>& input, const win::line<M,i,C>&
win, O& output)
{
- median_dir(input, 1, win.length(), output); // FIXME: Make 1 explicit!
+ median_dir(input, i, win.length(), output); // FIXME: Make 1 explicit!
}
# endif
-# ifdef MLN_CORE_WIN_VLINE2D_HH
- template <typename I, typename O>
- void median_(const Image<I>& input, const win::vline2d& win, O&
output)
- {
- median_dir(input, 0, win.length(), output);
- }
-# endif
-
-
} // end of namespace mln::level::impl