Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask about e_label_corner selection #123

Open
LilyGinger opened this issue Jan 10, 2023 · 0 comments
Open

Ask about e_label_corner selection #123

LilyGinger opened this issue Jan 10, 2023 · 0 comments

Comments

@LilyGinger
Copy link

Thanks for your great work.
I'm wondering about the selection of corner point. In stead of directly using the curvature value for judgement, there are other conditions for setting a corner points. I'm confused about the other conditions and I would be grateful if someone can explain why these conditions are needed (condition 1 and condition 2 below). Thanks for your time!

  if ( m_pts_info_vec[ idx ].curvature > thr_corner_curvature ) // large curvature point
  {
      if ( m_pts_info_vec[ idx ].depth_sq2 <= m_pts_info_vec[ idx - curvature_ssd_size ].depth_sq2 &&
           m_pts_info_vec[ idx ].depth_sq2 <= m_pts_info_vec[ idx + curvature_ssd_size ].depth_sq2 )   // condition 1
      // current point (middle point) depth smaller than the point's depth in the two sides 
      {
          if ( abs( m_pts_info_vec[ idx ].depth_sq2 - m_pts_info_vec[ idx - curvature_ssd_size ].depth_sq2 ) < sq2_diff * m_pts_info_vec[ idx ].depth_sq2 ||
               abs( m_pts_info_vec[ idx ].depth_sq2 - m_pts_info_vec[ idx + curvature_ssd_size ].depth_sq2 ) < sq2_diff * m_pts_info_vec[ idx ].depth_sq2 )    // condition 2
              m_pts_info_vec[ idx ].pt_label |= e_label_corner;   // set current point as corner point
      }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant