Skip to content

Commit

Permalink
[ISSUE-138][BUGFIX] Fix OpenCV compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lbristiel-psee committed Jan 28, 2025
1 parent 57c4814 commit b8c8250
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ inline bool RoiMaskAlgorithm::operator()(int x, int y) const {
return true;

const auto found = std::find_if(std::cbegin(rectangles_), std::cend(rectangles_), [&](const cv::Rect &rectangle) {
return rectangle.contains({x, y});
return rectangle.contains(cv::Point{x, y});
});
return (found != std::cend(rectangles_));
}
Expand Down

0 comments on commit b8c8250

Please sign in to comment.