Commit b83872ed authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

bug fix

parent 2665bb66
......@@ -190,7 +190,7 @@ void Refinement::getDefects(ArrayXf& defects, const Matrix3f& basis, const Matri
validCandidatePeaksCount = 0;
for (int j = 0, end = candidatePeaksNormsSquared.size(); j < end; j++)
{
if (candidatePeaksNormsSquared(j) > ucsBorderNormsSquared(0, i) & candidatePeaksNormsSquared(j) < ucsBorderNormsSquared(1, i))
if ((candidatePeaksNormsSquared(j) > ucsBorderNormsSquared(0, i)) & (candidatePeaksNormsSquared(j) < ucsBorderNormsSquared(1, i)))
{
candidatePeaks.col(validCandidatePeaksCount) = candidatePeaks.col(j);
validCandidatePeaksCount++;
......
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