Commit 06176d91 authored by Victor Simonin's avatar Victor Simonin
Browse files

Clean variable asssignment and loop in saliency map

parent 7a9fea56
......@@ -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};
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