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
pylene
Commits
06176d91
Commit
06176d91
authored
Jun 23, 2021
by
Victor Simonin
Browse files
Clean variable asssignment and loop in saliency map
parent
7a9fea56
Changes
1
Hide whitespace changes
Inline
Side-by-side
pylene/include/mln/morpho/component_tree.hpp
View file @
06176d91
...
...
@@ -462,12 +462,8 @@ namespace mln::morpho
const
std
::
vector
<
Edge
>&
s_map
=
saliency_map
(
node_map
);
for
(
const
auto
&
edge
:
s_map
)
for
(
const
auto
&
[
u
,
v
,
w
]
:
s_map
)
{
int
u
=
std
::
get
<
0
>
(
edge
);
int
v
=
std
::
get
<
1
>
(
edge
);
double
w
=
std
::
get
<
2
>
(
edge
);
int
u_pos
[
2
]
=
{
u
%
width
,
u
/
width
};
int
v_pos
[
2
]
=
{
v
%
width
,
v
/
width
};
...
...
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