Camera Calibration

asked 2015-11-01 04:22:46 -0500

Nbb gravatar image

updated 2016-01-06 00:16:39 -0500

Hello Forum

I am trying to determine the camera matrix so that I can extract the position of the camera in world coordinates. I have an image (below) and have all the points in world (meters) and pixel coordinates.

image description

The problem is, all the points have the same height ie. Z = 0 and hence the matrix is singular. image description

Is there another way for me to obtain the camera matrix ?

Regards, Haziq

EDIT: In short, I would like to determine the location of the camera in world coordinates and this website http://ksimek.github.io/2012/08/14/de... extracts the camera location from the camera matrix. Is there any other way for me to get the location of the camera ??

edit retag flag offensive close merge delete

Comments

Yes your matrix is singular because all Z are equal to 0. But It means you don't need Z (except in Quidditch). Delete column with z and ou will have a matrix which you can use to locate player. Except you will have a good localisation with foot player not the head player.

LBerger gravatar imageLBerger ( 2015-11-01 12:21:53 -0500 )edit

Hi, thanks for the reply. So the camera matrix would be a 3x3 matrix ? How would i extract the (XYZ) position of the camera ? I am trying to follow the steps here http://ksimek.github.io/2012/08/14/de... and I need a 3 x 4 camera matrix

Nbb gravatar imageNbb ( 2015-11-01 20:40:39 -0500 )edit

You would extract X and Y coordinates only. I think it's not possible without some Z coordinates. You can use goal may be

LBerger gravatar imageLBerger ( 2015-11-03 01:29:25 -0500 )edit

Hi, is it possible for me to extract the 3x4 camera matrix if I only have 1 point with height ? I will use the goalpost like u say but that will only give me 1 height. The others will still be 0. Will it work ?

Nbb gravatar imageNbb ( 2016-01-06 00:14:16 -0500 )edit

Yes it should work but you can two points in goal (left and right)

LBerger gravatar imageLBerger ( 2016-01-06 09:11:57 -0500 )edit