Skip to content

Commit

Permalink
[CORPS] Avoids to look at points that have already been explored and …
Browse files Browse the repository at this point in the history
…rejected
  • Loading branch information
rlagneau committed Oct 25, 2023
1 parent 643bbb3 commit 2512b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/core/src/image/vpCannyEdgeDetection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,10 @@ vpCannyEdgeDetection::performEdgeTracking()
if (it->second == STRONG_EDGE) {
m_edgeMap[it->first.first][it->first.second] = 255;
}
else if (recursiveSearchForStrongEdge(it->first)) {
m_edgeMap[it->first.first][it->first.second] = 255;
else if (it->second == WEAK_EDGE) {
if (recursiveSearchForStrongEdge(it->first)) {
m_edgeMap[it->first.first][it->first.second] = 255;

Check warning on line 469 in modules/core/src/image/vpCannyEdgeDetection.cpp

View check run for this annotation

Codecov / codecov/patch

modules/core/src/image/vpCannyEdgeDetection.cpp#L467-L469

Added lines #L467 - L469 were not covered by tests
}
}
}
}
Expand Down

0 comments on commit 2512b21

Please sign in to comment.