Commit 0193764d authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

mln/subsampling/antialiased.hh: Fix the use of 'factor round'.

parent 0e13f810
2010-04-13 Guillaume Lazzara <z@lrde.epita.fr>
* mln/subsampling/antialiased.hh: Fix the use of 'factor round'.
2010-04-09 Guillaume Lazzara <z@lrde.epita.fr>
 
Rename nslis to nslices.
......@@ -90,7 +90,6 @@ namespace mln
mlc_is_a(mln_domain(I), Box)::check();
mln_precondition(exact(input).is_valid());
mln_precondition(exact(input).domain().pmin() == literal::origin);
mln_precondition(internal::is_valid_factor(factor));
(void) input;
(void) factor;
......@@ -262,6 +261,11 @@ namespace mln
s += tmp;
}
// FIXME: should be removed and replaced by the
// commented part below.
for (unsigned j = 0; j < P::dim; ++j)
s[j] += factor_round;
*po++ = (s /*+ factor_round*/) / factor_2;
}
for (unsigned j = 0; j < factor; ++j)
......
......@@ -35,3 +35,48 @@ ppm_sauvola_SOURCES = ppm_sauvola.cc
ppm_fg_sauvola_ms_SOURCES = ppm_fg_sauvola_ms.cc
ppm_sauvola_ms_SOURCES = ppm_sauvola_ms.cc
ppm_sauvola_ms_split_SOURCES = ppm_sauvola_ms_split.cc
if HAVE_MAGICKXX
bin_PROGRAMS += \
fg_sauvola_ms \
sauvola \
sauvola_debug \
sauvola_ms \
sauvola_ms_static \
sauvola_ms_split
fg_sauvola_ms_SOURCES = fg_sauvola_ms.cc
fg_sauvola_ms_CPPFLAGS = $(AM_CPPFLAGS) \
$(MAGICKXX_CPPFLAGS)
fg_sauvola_ms_LDFLAGS = $(AM_LDFLAGS) \
$(MAGICKXX_LDFLAGS)
sauvola_SOURCES = sauvola.cc
sauvola_CPPFLAGS = $(AM_CPPFLAGS) \
$(MAGICKXX_CPPFLAGS)
sauvola_LDFLAGS = $(AM_LDFLAGS) \
$(MAGICKXX_LDFLAGS)
sauvola_debug_SOURCES = sauvola_debug.cc
sauvola_debug_CPPFLAGS = $(AM_CPPFLAGS) \
$(MAGICKXX_CPPFLAGS)
sauvola_debug_LDFLAGS = $(AM_LDFLAGS) \
$(MAGICKXX_LDFLAGS)
sauvola_ms_SOURCES = sauvola_ms.cc
sauvola_ms_CPPFLAGS = $(AM_CPPFLAGS) \
$(MAGICKXX_CPPFLAGS)
sauvola_ms_LDFLAGS = $(AM_LDFLAGS) \
$(MAGICKXX_LDFLAGS)
sauvola_ms_split_SOURCES = sauvola_ms_split.cc
sauvola_ms_split_CPPFLAGS = $(AM_CPPFLAGS) \
$(MAGICKXX_CPPFLAGS)
sauvola_ms_split_LDFLAGS = $(AM_LDFLAGS) \
$(MAGICKXX_LDFLAGS)
endif HAVE_MAGICKXX
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment