lood339 / SCCvSD

Sports Camera Calibration via Synthesic Data
BSD 2-Clause "Simplified" License
71 stars 19 forks source link

Ground truth homography in which space? #1

Closed jiangwei221 closed 5 years ago

jiangwei221 commented 5 years ago

Hi: Thanks for open sourcing your code! I have a qustion about the homography in "test.mat" file. for example, if I check the homography of the first image, it looks like:

In [13]: data['annotation'][0][0]                                                                                
Out[13]: 
(array(['1.jpg'], dtype='<U5'), array([[ 9.08451931e+00, -5.31615622e+00,  8.38673068e+01],
       [ 2.95203351e-03,  5.52517432e-01,  8.30620388e+01],
       [-1.69828350e-03, -2.94390308e-03,  3.94388114e-01]]))

but the homography in the UOT dataset (stored in a txt file), for the 1.jpg is:

   9.1842785e-02   3.6737114e-01  -9.6902522e+01
  -2.8247420e-02   7.3986511e-01  -1.4981605e+02
   1.8463391e-04   7.1046551e-03   1.0000000e+00

What is the steps to transform default homography to your space?

Bests

jiangwei221 commented 5 years ago

ah, it is the inversion!