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

StereoCameraModel could have functions to project back to image space #268

Open
2ros0 opened this issue Feb 21, 2019 · 0 comments
Open

StereoCameraModel could have functions to project back to image space #268

2ros0 opened this issue Feb 21, 2019 · 0 comments

Comments

@2ros0
Copy link

2ros0 commented Feb 21, 2019

There's already this guy:

void StereoCameraModel::projectDisparityTo3d(const cv::Point2d& left_uv_rect, float disparity,
                                             cv::Point3d& xyz) const

I'm thinking...

void StereoCameraModel::reproject3dToDisparity(const cv::Point3d & xyz, float disparity, cv::Point2d & left_uv_rect) const

So basically, get the pixel location back for a point. It's useful when going back and forth between 3D and 2D representations because you're processing some things in 3D and others in 2D. Thoughts?

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