Commit 7d3cbec0 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

primitive/extract/objects.hh: Compute and store mass centers.

parent 3151875d
2009-12-15 Guillaume Lazzara <z@lrde.epita.fr>
* primitive/extract/objects.hh: Compute and store mass centers.
2009-12-14 Guillaume Lazzara <z@lrde.epita.fr> 2009-12-14 Guillaume Lazzara <z@lrde.epita.fr>
Fix object links filters. Fix object links filters.
...@@ -8,7 +12,6 @@ ...@@ -8,7 +12,6 @@
* filter/object_links_top_aligned.hh: Pass the proper dimension as * filter/object_links_top_aligned.hh: Pass the proper dimension as
routine argument. routine argument.
2009-12-14 Guillaume Lazzara <z@lrde.epita.fr> 2009-12-14 Guillaume Lazzara <z@lrde.epita.fr>
Cleanup Sauvola's binarization code. Cleanup Sauvola's binarization code.
......
...@@ -119,8 +119,14 @@ namespace scribo ...@@ -119,8 +119,14 @@ namespace scribo
results = labeling::blobs_and_compute(input, nbh, nobjects, results = labeling::blobs_and_compute(input, nbh, nobjects,
accu_bbox()); accu_bbox());
// FIXME: enable mass centers computation and maybe merge this
// computation with blobs computation above.
util::array<mln_result(accu::center<mln_site(I)>)>
mass_centers;
mass_centers = labeling::compute(accu::meta::center(),
results.first(), nobjects);
object_image(L) object_image(L)
output(results.first(), nobjects, results.second()); output(results.first(), nobjects, results.second(), mass_centers);
trace::exiting("scribo::objects"); trace::exiting("scribo::objects");
return output; return output;
......
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