BiFuse icon indicating copy to clipboard operation
BiFuse copied to clipboard

Depth Map reversed?

Open gateway opened this issue 5 years ago • 5 comments

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

gateway avatar Jul 06 '20 18:07 gateway

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

fuenwang avatar Jul 09 '20 13:07 fuenwang

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.

gateway avatar Jul 09 '20 18:07 gateway

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

You can get similar results like image

fuenwang avatar Jul 10 '20 08:07 fuenwang

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

gateway avatar Jul 10 '20 18:07 gateway

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

KirillHiddleston avatar Jun 14 '21 13:06 KirillHiddleston