diff --git a/modules/features2d/src/brisk.cpp b/modules/features2d/src/brisk.cpp index ad8c698c57..d1fa0c9c8b 100644 --- a/modules/features2d/src/brisk.cpp +++ b/modules/features2d/src/brisk.cpp @@ -309,10 +309,9 @@ BRISK::generateKernel(std::vector &radiusList, std::vector &numberLi { indexChange.resize(points_ * (points_ - 1) / 2); indSize = (unsigned int)indexChange.size(); - } - for (unsigned int i = 0; i < indSize; i++) - { - indexChange[i] = i; + + for (unsigned int i = 0; i < indSize; i++) + indexChange[i] = i; } const float dMin_sq = dMin_ * dMin_; const float dMax_sq = dMax_ * dMax_;