Skip to content

KeyPoint and landmarks #573

Answered by ymd-stella
dubing-bit asked this question in Q&A
Discussion options

You must be logged in to vote

If what you want is a undistorted key point, you can achieve the following

vector<std::shared_ptr<stella_vslam::data::landmark>> landmarks = m_last_keyframe->get_landmarks();
for (unsigned int idx = 0; idx < landmarks.size(); ++idx) {
    if (landmarks.at(idx)) { 
        auto undist_keypt = m_last_keyframe->frm_obs_.undist_keypts_.at(idx);
    }
}

Landmarks (that are not nullptr) are mapped to keypoints by index.

If you want keypoints that are not undistorted, there is no way to do that now.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dubing-bit
Comment options

Answer selected by dubing-bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants