Skip to content

Commit

Permalink
add missing filterKeypointsByDepth step
Browse files Browse the repository at this point in the history
  • Loading branch information
borongyuan committed Oct 24, 2023
1 parent 71bb0cf commit 699fe17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corelib/src/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4970,6 +4970,10 @@ Signature * Memory::createSignature(const SensorData & inputData, const Transfor
if(stats) stats->addStatistic(Statistics::kTimingMemKeypoints_3D(), t*1000.0f);
UDEBUG("time keypoints 3D (%d) = %fs", (int)keypoints3D.size(), t);
}
if(_feature2D->getMinDepth() > 0.0f || _feature2D->getMaxDepth() > 0.0f)
{
_feature2D->filterKeypointsByDepth(keypoints, descriptors, keypoints3D, _feature2D->getMinDepth(), _feature2D->getMaxDepth());
}
}
}
else if(data.imageRaw().empty())
Expand Down

0 comments on commit 699fe17

Please sign in to comment.