Commit 1c180f4c authored by Alexander Alekhin's avatar Alexander Alekhin

imgproc: fix RemoveOverlaps() with empty input vector

parent ffd4a279
......@@ -1355,6 +1355,8 @@ static void GetCircleCenters(const std::vector<int> &centers, std::vector<Vec4f>
template<typename T>
static void RemoveOverlaps(std::vector<T>& circles, float minDist)
{
if (circles.size() <= 1u)
return;
float minDist2 = minDist * minDist;
size_t endIdx = 1;
for (size_t i = 1; i < circles.size(); ++i)
......
Markdown is supported
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