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
202bac27
Commit
202bac27
authored
Aug 18, 2010
by
Roland Levillain
Browse files
mln/topo/skeleton/breadth_first_thinning.hh: Reindent.
parent
e9c085e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
202bac27
2010-08-18 Roland Levillain <roland@lrde.epita.fr>
* mln/topo/skeleton/breadth_first_thinning.hh: Reindent.
2010-08-18 Roland Levillain <roland@lrde.epita.fr>
Fix two errors in mln::topo::skeleton::breadth_first_thinning.
milena/mln/topo/skeleton/breadth_first_thinning.hh
View file @
202bac27
...
...
@@ -118,31 +118,31 @@ namespace mln
mln_piter
(
set_t
)
ps
(
set
);
for_all
(
ps
)
{
// Same remark as above.
psite
p
=
ps
;
/* FIXME: We compute the cell and attachment of P twice:
during the call to is_simple() and within detach().
How could we reuse this elegantly, without breaking
the genericity of the skeleton algorithm?
Also, keep in mind that functors can maintain an
internal state and make side effects, meaning that
e.g. constraint(p) might not be constant for a
given p during the thinning. */
if
(
constraint
(
p
)
&&
is_simple
(
p
))
// Same remark as above.
psite
p
=
ps
;
/* FIXME: We compute the cell and attachment of P twice:
during the call to is_simple() and within detach().
How could we reuse this elegantly, without breaking
the genericity of the skeleton algorithm?
Also, keep in mind that functors can maintain an
internal state and make side effects, meaning that
e.g. constraint(p) might not be constant for a
given p during the thinning. */
if
(
constraint
(
p
)
&&
is_simple
(
p
))
{
detach
(
p
,
output
);
mln_niter
(
N
)
n_
(
nbh
,
p
);
for_all
(
n_
)
{
detach
(
p
,
output
);
mln_niter
(
N
)
n_
(
nbh
,
p
);
for_all
(
n_
)
{
// Same remark as above regarding P and P_.
psite
n
=
n_
;
if
(
output
.
domain
().
has
(
n
)
&&
output
(
n
)
&&
constraint
(
n
)
&&
is_simple
(
n
))
next_set
.
insert
(
n
);
}
// Same remark as above regarding P and P_.
psite
n
=
n_
;
if
(
output
.
domain
().
has
(
n
)
&&
output
(
n
)
&&
constraint
(
n
)
&&
is_simple
(
n
))
next_set
.
insert
(
n
);
}
}
}
}
set
.
clear
();
std
::
swap
(
set
,
next_set
);
}
...
...
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