
--- scribo/ChangeLog | 5 ++++- scribo/primitive/extract/objects.hh | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index dfbf01a..a11166a 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,3 +1,7 @@ +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> 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 <z@lrde.epita.fr> Cleanup Sauvola's binarization code. diff --git a/scribo/primitive/extract/objects.hh b/scribo/primitive/extract/objects.hh index 2ca2f5d..3f1af7c 100644 --- a/scribo/primitive/extract/objects.hh +++ b/scribo/primitive/extract/objects.hh @@ -119,8 +119,14 @@ namespace scribo results = labeling::blobs_and_compute(input, nbh, nobjects, 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) - output(results.first(), nobjects, results.second()); + output(results.first(), nobjects, results.second(), mass_centers); trace::exiting("scribo::objects"); return output; -- 1.5.6.5