Ask Your Question
1

Picking 3D points in Viz

asked 2018-02-01 06:01:10 -0500

mirnyy gravatar image

updated 2018-02-01 06:02:40 -0500

Hey,

is it possible to pick points in Viz?
I already have callback method for getting the position where i clicked:

void mcallback(const cv::viz::MouseEvent& event, void* v)
{
    if(event.button == event.LeftButton)
        cout << event.pointer << endl;
    return;
}
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-01 07:37:23 -0500

LBerger gravatar image

updated 2018-02-01 13:26:49 -0500

I think you can use converTo3DRay method and set windowcoord.z to 0 and x, y with mouse coordinates

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-01 06:01:10 -0500

Seen: 145 times

Last updated: Feb 01 '18