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

How I get the occlusion part in the SCARED dataset? #53

Open
fromWRF opened this issue Mar 4, 2022 · 5 comments
Open

How I get the occlusion part in the SCARED dataset? #53

fromWRF opened this issue Mar 4, 2022 · 5 comments

Comments

@fromWRF
Copy link

fromWRF commented Mar 4, 2022

As I can see in your data structure, there is an occlusion folder in your data, e.g. Scene Flow, MPI Sintel, KITTI 2015, MIDDLEBURY_2014, SCARED data. You give the answer about how to get the occlusion in the Scene Flow data, however, how to get the occlusion part in the SCARED data?
Thanks for your answer!!!

@Miaowei-HNU
Copy link

Can you find it?

@mli0603
Copy link
Owner

mli0603 commented May 18, 2022

Hi @Miaowei-HNU

The occlusion is computed from the following steps

  • The provided depth map are backprojected to both left and right cameras using the preprocessing scripts here
  • The occlusion is computed using the script here

@Miaowei-HNU
Copy link

Thanks for your answer @mli0603

@Laqqq
Copy link

Laqqq commented Sep 5, 2023

Hi! Thank you for providing this information, but in calculating the occlusion, how did you get the right disparity? As I follow the step but only get the left one. Thank you for clarification!

@MichaelWangGo
Copy link

Hi, thanks for providing the method, but the occ_mask_l is returned as True and False in each pixel:
occ_mask_l.shape (1024, 1280, 3)
occ_mask_l [[[ True False False]
[ True False False]
[ True False False]
...
[ True False False]
[ True False False]
[ True False False]]

[[ True False False]
[ True False False]
[ True False False]
...

and the error output:
cv2.error: OpenCV(4.9.0) 👎 error: (-5:Bad argument) in function 'imwrite'

Overload resolution failed:

img data type = bool is not supported
Expected Ptrcv::UMat for argument 'img'
How to save the occlusion images?

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

5 participants