Commit 5b702052 authored by Edwin Carlinet's avatar Edwin Carlinet
Browse files

fixup! Make ndimage use ndpoint<short> by default for storage.

parent c3409a63
......@@ -357,16 +357,17 @@ int accumulate_accu(const mln::experimental::image2d<uint8_t>& ima)
return mln::accumulate(ima, mln::accu::features::sum<int>());
}
using point_t = mln::image_point_t<mln::experimental::image2d<uint8_t>>;
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<uint8_t>& ima)
std::vector<point_t> sort_points(const mln::experimental::image2d<uint8_t>& ima)
{
return mln::experimental::sort_points(ima);
}
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<int>& ima)
std::vector<point_t> sort_points(const mln::experimental::image2d<int>& ima)
{
return mln::experimental::sort_points(ima);
}
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<mln::rgb8>& ima)
std::vector<point_t> sort_points(const mln::experimental::image2d<mln::rgb8>& ima)
{
return mln::experimental::sort_points(ima, mln::lexicographicalorder_less<mln::rgb8>());
}
......@@ -54,9 +54,11 @@ int accumulate_baseline(const mln::experimental::image2d<uint8_t>& ima);
int accumulate_accu(const mln::experimental::image2d<uint8_t>& ima);
int accumulate(const mln::experimental::image2d<uint8_t>& ima);
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<uint8_t>& ima);
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<int>& ima);
std::vector<mln::experimental::point2d> sort_points(const mln::experimental::image2d<mln::rgb8>& ima);
using point_t = mln::image_point_t<mln::experimental::image2d<uint8_t>>;
std::vector<point_t> sort_points(const mln::experimental::image2d<uint8_t>& ima);
std::vector<point_t> sort_points(const mln::experimental::image2d<int>& ima);
std::vector<point_t> sort_points(const mln::experimental::image2d<mln::rgb8>& ima);
class BMAlgorithms : public benchmark::Fixture
{
......
Markdown is supported
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