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

Dead code (prevPts and currPts are not used) ? #22

Open
VigibotDev opened this issue Sep 15, 2020 · 0 comments
Open

Dead code (prevPts and currPts are not used) ? #22

VigibotDev opened this issue Sep 15, 2020 · 0 comments

Comments

@VigibotDev
Copy link

I don't understand this because prevPts and currPts are not used anywhere !

    Mat prevPts(2,prevFeatures.size(), CV_64F), currPts(2,currFeatures.size(), CV_64F);


   for(int i=0;i<prevFeatures.size();i++)       {   //this (x,y) combination makes sense as observed from the source code of triangulatePoints on GitHub
                prevPts.at<double>(0,i) = prevFeatures.at(i).x;
                prevPts.at<double>(1,i) = prevFeatures.at(i).y;

                currPts.at<double>(0,i) = currFeatures.at(i).x;
                currPts.at<double>(1,i) = currFeatures.at(i).y;
    }
@VigibotDev VigibotDev changed the title Dead code ? Dead code (prevPts and currPts are not used) ? Sep 15, 2020
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