Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about gt flow #18

Open
SwagJ opened this issue Jan 17, 2021 · 1 comment
Open

Questions about gt flow #18

SwagJ opened this issue Jan 17, 2021 · 1 comment

Comments

@SwagJ
Copy link

SwagJ commented Jan 17, 2021

Dear @nikolausmayer ,

Thank you for your awesome dataset.
However, when I tried to used the dataset. Using the Python I/O routine, you provided on dataset website, the GT flow I loaded gives a large pixel displacement value around boundary, like 152.4762 or 152.5085(take /driving/optical_flow/15mm_focallength/scene_forwards/slow/into_future/left/OpticalFlowIntoFuture_0001_L.pfm as an example). However, visually, for image 0001.png and image 0002.png, the flow should not have that large value.
0001
0002

Is there something wrong with the my GT loading process or did I take the wrong image input?

flow load function used: readPFM from you official website.
flow_occ, _ = readPFM(path_to_file)
flow value are reported is:
flow_occ[:,:,2]

I am looking forward to your reply. Thank you very much.

Best,

@nikolausmayer
Copy link
Contributor

Hi,

you are observing the magic of perspective distortion 🙂
These "huge" flows are truly correct. Try backwarping the second image onto the first — you should see that they match perfectly!

You are absolutely right in that "visually" these flows should not be there — but keep in mind that you do not actually see where the pixels on the image border move (they move outside the image!). If the field of view were a little larger, you could verify that they do indeed move that far.

Best.
Nikolaus

@nikolausmayer nikolausmayer self-assigned this Jan 25, 2021
@nikolausmayer nikolausmayer removed their assignment Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants