Ask Your Question
0

Is it possible to draw simple figures in a 3 dimensional Mat ?

asked 2015-01-17 21:20:23 -0600

sup gravatar image

I want to draw for example a rectangle bended backwards and project it to a 2D Mat to see effects of the perspective. If no, how can I create 3D Mats with simple shapes ? I have never used graphic engines, what is the simplest approach ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-18 02:29:46 -0600

cv::projectPoints can solve that problem. It computes the projection of 3d Points for a camera with given intrinsics. OpenCV 3.0 now also has the Viz-Module which can render simple objects like OpenGL but that could be a bit of overkill.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-17 21:20:23 -0600

Seen: 108 times

Last updated: Jan 18 '15