Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
7d3cbec0
Commit
7d3cbec0
authored
Dec 15, 2009
by
Guillaume Lazzara
Browse files
primitive/extract/objects.hh: Compute and store mass centers.
parent
3151875d
Changes
2
Hide whitespace changes
Inline
Side-by-side
scribo/ChangeLog
View file @
7d3cbec0
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.
...
...
scribo/primitive/extract/objects.hh
View file @
7d3cbec0
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment