fabiotosi92 / NeRF-Supervised-Deep-Stereo

A novel paradigm for collecting and generating stereo training data using neural rendering
https://nerfstereo.github.io/
MIT License
349 stars 19 forks source link

depth rendering #5

Closed kiyojimini closed 1 year ago

kiyojimini commented 1 year ago

I use ngp.Depth to render depth and ngp.AO to render ao, but I dont know whether this method can get absolute depth directly. do you know how to process the rendered depth to absolute depth? many thanks. image

xjcvip007 commented 1 year ago

I have the same and hope to get your answer~ @fabiotosi92

fabiotosi92 commented 1 year ago

You don't have to determine the exact absolute depth for the specific goals. Instead, you only need to establish a virtual baseline to extract the corresponding disparity map, which represents the dense correspondence between a pair of stereo images. To calculate the disparity, you can use the formula f * b / depth, where f is the focal length and b is the virtual baseline.