Skip to content

Commit

Permalink
add early return in dense depth tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Oct 29, 2024
1 parent 87f23e3 commit 1b9e49d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/tracker/rbt/src/core/vpRBTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ void vpRBTracker::updateRender(vpRBFeatureTrackerInput &frame)
// Update clipping distances
frame.renders.normals.resize(m_imageHeight, m_imageWidth);
frame.renders.silhouetteCanny.resize(m_imageHeight, m_imageWidth);
frame.renders.isSilhouette.resize(m_imageHeight, m_imageWidth);

float clipNear, clipFar;
m_renderer.computeClipping(clipNear, clipFar);
frame.renders.zNear = std::max(0.001f, clipNear);
Expand Down
1 change: 1 addition & 0 deletions modules/tracker/rbt/src/features/vpRBDenseDepthTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ void vpRBDenseDepthTracker::computeVVSIter(const vpRBFeatureTrackerInput &/*fram
m_weighted_error = 0.0;
m_cov = 0.0;
m_covWeightDiag = 0.0;
return;
}
vpRotationMatrix cRo = cMo.getRotationMatrix();
#ifdef VISP_HAVE_OPENMP
Expand Down

0 comments on commit 1b9e49d

Please sign in to comment.