I'm trying to use the PETS 2009 S2 L1 Dataset for some multicamera pedestrian detection framework.
I'm using the common ground plane assumption for all the cameras so I need to project all the views to the same z = 0 ground plane.
PETS 2009 gives camera calibration parameters in terms of Tsai parameters like the following:
<?xml version="1.0" encoding="UTF-8"?>
<Camera name="View_001">
<Geometry width="768" height="576" ncx="7.9500000000e+02" nfx="7.5200000000e+02" dx="4.8500000000e-03" dy="4.6500000000e-03" dpx"5.1273271277e-03" dpy"4.6500000000e-03"/>
<Intrinsic focal="5.5549183034e+00" kappa1="5.1113043639e-03" cx="3.2422149053e+02" cy="2.8256650051e+02" sx="1.0937855397e+00"/>
<Extrinsic tx="8.2873214225e+02" ty="-3.1754796051e+03" tz="3.5469298547e+04" rx="2.0405458695e+00" ry="-8.9337703748e-01" rz="-4.3056124791e-01"/>
</Camera>
I'm having a few problems converting the Intrinsic and Extrinsic parameters to a single 3x3 ground homography matrix.
Almost all links that I found with C++ sample code (as the one in the official PETS website) were dead and I had no luck finding any useful information.
Any help would be appreciate.