Commit 2b07a4b3 authored by Thierry Geraud's avatar Thierry Geraud
Browse files

Fix fastest distance computation.

	* folio/distance_front.cc (main): Remove echo.
	Test equality between generic and fastest results.
	* folio/distance_front_new.hh
	(distance_front_fastest): Fix erroneous line moves.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3480 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 6494c5cb
2009-03-05 Thierry Geraud <thierry.geraud@lrde.epita.fr>
Fix fastest distance computation.
* folio/distance_front.cc (main): Remove echo.
Test equality between generic and fastest results.
* folio/distance_front_new.hh
(distance_front_fastest): Fix erroneous line moves.
2009-03-05 Thierry Geraud <thierry.geraud@lrde.epita.fr>
Complete Etienne's work.
......
......@@ -38,9 +38,10 @@
#include <mln/data/fill.hh>
#include <mln/debug/println.hh>
#include <mln/opt/at.hh>
#include <mln/level/compare.hh>
# include <mln/transform/internal/distance_functor.hh>
# include "distance_front_new.hh"
#include <mln/transform/internal/distance_functor.hh>
#include "distance_front_new.hh"
int main()
......@@ -74,13 +75,14 @@ int main()
w_win,
dmax,
f);
debug::println("ref", ref);
// debug::println("ref", ref);
output = canvas::impl::distance_front_fastest(input,
nbh,
w_win,
dmax,
f);
debug::println("output", output);
// debug::println("output", output);
mln_invariant(output == ref);
}
......@@ -316,9 +316,9 @@ namespace mln
}
}
}
bucket_size -= bucket_d.size();
bucket_d.clear();
}
bucket_size -= bucket_d.size();
bucket_d.clear();
}
} // end of Propagation.
......
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