yuhsuanyeh / BiFuse

[CVPR2020] BiFuse: Monocular 360 Depth Estimation via Bi-Projection Fusion
MIT License
173 stars 28 forks source link

Depth Map reversed? #4

Open gateway opened 4 years ago

gateway commented 4 years ago

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 commented 3 years ago

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

gateway commented 3 years ago

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 commented 3 years ago

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

You can get similar results like image

gateway commented 3 years ago

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 commented 3 years ago

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