Skip to content
GitLab
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
7e43020f
Commit
7e43020f
authored
Aug 29, 2013
by
Roland Levillain
Browse files
Catch up with the new interface of the topological watershed.
* apps/constrained-connectivity/constrained-connectivity.cc: Here.
parent
0a1c7ac3
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
7e43020f
2013-08-29 Roland Levillain <roland@lrde.epita.fr>
Catch up with the new interface of the topological watershed.
* apps/constrained-connectivity/constrained-connectivity.cc: Here.
2010-05-11 Roland Levillain <roland@lrde.epita.fr>
Have the topological WST be more generic.
milena/apps/constrained-connectivity/constrained-connectivity.cc
View file @
7e43020f
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009
, 2013
EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
...
...
@@ -164,11 +164,11 @@ int main(int argc, char* argv[])
This requires some changes in the topological WST implementation,
to make its component tree structure compatible with
morpho::tree::data. */
typedef
p_array
<
tree_t
::
site
>
sites_t
;
sites_t
sites
=
data
::
sort_psites_decreasing
(
w
);
morpho
::
tree
::
data
<
w_t
,
sites_t
>
t
(
w
,
sites
,
world
::
inter_pixel
::
e2e
());
typedef
p_array
<
tree_t
::
p
site
>
p
sites_t
;
p
sites_t
p
sites
=
data
::
sort_psites_decreasing
(
w
);
morpho
::
tree
::
data
<
w_t
,
p
sites_t
>
t
(
w
,
p
sites
,
world
::
inter_pixel
::
e2e
());
// Create initial images for min and max values on sites (not components).
// Create initial images for min and max values on
p
sites (not components).
mln_ch_value_
(
w_t
,
accu
::
stat
::
min
<
int_u8
>
)
init_min_val
;
initialize
(
init_min_val
,
w
);
mln_ch_value_
(
w_t
,
accu
::
stat
::
max
<
int_u8
>
)
init_max_val
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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