Ask Your Question
1

Picking 3D points in Viz

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

mirnyy gravatar image

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

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 -0600

LBerger gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 400 times

Last updated: Feb 01 '18