Commit 7232d8d5 authored by Victor Simonin's avatar Victor Simonin
Browse files

Clean loop and value assignment in saliency_map

parent 69ffe7ff
Pipeline #28736 passed with stage
in 30 minutes and 18 seconds
......@@ -64,12 +64,8 @@ namespace mln::morpho
const std::vector<mln::morpho::edge_t<int, double>>& s_map = saliency_map(node_map);
for (const auto& edge : s_map)
for (const auto [u, v, w] : s_map)
{
int u = edge.p;
int v = edge.q;
double w = edge.w;
int u_pos[2] = {u % width, u / width};
int v_pos[2] = {v % width, v / width};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment