Ask Your Question
1

perspective or projection matrix

asked 2014-09-25 04:02:21 -0500

Hey!

Is there any node/pkg that already implemented the mono camera perspective matrix calculation? I have a mono camera mounted on a fixed place and I would like to get the projection matrix. I know the camera calibration node and I thought there is something similar for this task.

edit retag flag offensive close merge delete

Comments

You will need some assumptions to compute the projection matrix from a mono camera, like some known calibration pattern. What are your assumptions ?

Guido gravatar imageGuido ( 2014-09-25 06:21:35 -0500 )edit

I'm going to do dhte calibration too. I know that I need the intrinsic parameters in order to get the correct perspective matrix. But is there any ready to use node for perspective matrix calculation if I supply the camera calibration files?

zweistein gravatar imagezweistein ( 2014-09-25 06:49:19 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2014-09-26 06:26:05 -0500

Sounds like you want to use the image_geometry package. It contains convenience functionality for working with standard ROS camera models (initialized from a CameraInfo message). Specifically, the PinholeCameraModel::fullProjectionMatrix and PinholeCameraModel::projectPixelTo3dRay methods sound like what you´re looking for. See also the associated tutorial for info on how to initialize things from a CameraInfo in a node.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-09-25 04:02:21 -0500

Seen: 135 times

Last updated: Sep 26 '14