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

Depth Map reversed? #4

Open
gateway opened this issue Jul 6, 2020 · 5 comments
Open

Depth Map reversed? #4

gateway opened this issue Jul 6, 2020 · 5 comments

Comments

@gateway
Copy link

gateway commented Jul 6, 2020

Hmm, I'm used to having depth maps where white is closer and black or grey areas further back. Did I miss something or are their 2 ways to handle this?

Yours..

image

quick google image search..

image

@fuenwang
Copy link
Collaborator

fuenwang commented Jul 9, 2020

The result of the google search is inverse depth. You can just take the inverse of the depth map and get similar result.

@gateway
Copy link
Author

gateway commented Jul 9, 2020

Sounds good.. is their a programatic way to do this with what your guys are working on.. maybe a --reverse ? I guess I could try to reverse it in photoshop.

@fuenwang
Copy link
Collaborator

@gateway You can just read my output npy file and modify the depth as
image

You can get similar results like
image

@gateway
Copy link
Author

gateway commented Jul 10, 2020

Cool.. hmm wait.. this is only for the vis file right? any chance to get a --reverse or can you point me to where this can be done in code which would spit out the reverse image.. sorry I'm not 100% up to speed on the codebase right now

@KirillHiddleston
Copy link

KirillHiddleston commented Jun 14, 2021

Hello, these are two different maps.

  1. disparity map https://stackoverflow.com/questions/7337323/what-is-the-definition-of-a-disparity-map - 8bits image white is closer
  2. depth map - black is closer

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

3 participants