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