facebookresearch / synsin

View synthesis for the public.
http://www.robots.ox.ac.uk/~ow/synsin.html
Other
662 stars 94 forks source link

The content of image's txt file is different #14

Closed Pabebezz closed 4 years ago

Pabebezz commented 4 years ago

hi,Thanks for you research.I have one question that I hope you can answer. When I extract frames as your format,The content of image's txt file is different. Can you explain it? I appreciate your help!

for example you provide(https://raw.githubusercontent.com/facebookresearch/synsin/master/data/files/realestate.txt) : 000c3ab189999a83 49716333 49716333 123.477562 219.515671 128.0 128.0 0.994582 0.007716 -0.103669 0.066855 -0.007079 0.999954 0.006514 0.050014 0.103715 -0.005744 0.994591 -2.286677 0.994582 0.007716 -0.103669 0.066855 -0.007079 0.999954 0.006514 0.050014 0.103715 -0.005744 0.994591 -2.286677

the raw data(RealEstate10K/test/000c3ab189999a83.txt): 49716333 0.482334223 0.857483078 0.500000000 0.500000000 0.000000000 0.000000000 0.994581878 0.007715873 -0.103669293 0.066854894 -0.007078611 0.999953747 0.006513574 0.050014287 0.103714757 -0.005744448 0.994590521 -2.286676987

phongnhhn92 commented 4 years ago

@Pabebezz I think the difference comes from the normalize step to convert the image coordinates from (0,W) and (0,H) to (-1,1). I am not sure because it looks like some numbers are being scaled now.

oawiles commented 4 years ago

Yes, the intrinsic camera parameters have been rescaled as @phongnhhn92 said

Pabebezz commented 4 years ago

I get it. Thank both of you! @phongnhhn92 you are awesome