yenchenlin / nerf-pytorch

A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
MIT License
5.33k stars 1.04k forks source link

What does the function `get_ndc_rays` do? #92

Open ovshake opened 1 year ago

ovshake commented 1 year ago

Thank you for the awesome repo! What does the function get_ndc_rays do? https://github.com/yenchenlin/nerf-pytorch/blob/63a5a630c9abd62b0f21c08703d0ac2ea7d4b9dd/run_nerf_helpers.py#L175 What does near plane mean? TIA

Dipankar1997161 commented 1 year ago

I did not thoroughly go through the project or code of this git but from the function definition, it seems that it is related to the image viewpoint.

For NeRF we need 2D images from multi-viewpoints, so this function might just be doing the same by taking the camera parameters as input.

This is just a rough estimation from my end.