wbhu / Tri-MipRF

Tri-MipRF: Tri-Mip Representation for Efficient Anti-Aliasing Neural Radiance Fields, ICCV'23 (Oral, Best Paper Finalist)
https://wbhu.github.io/projects/Tri-MipRF
451 stars 13 forks source link

Question for the radiuses r #4

Closed SYSUykLin closed 1 year ago

SYSUykLin commented 1 year ago

@staticmethod def compute_ball_radii(distance, radiis, cos): inverse_cos = 1.0 / cos tmp = (inverse_cos * inverse_cos - 1).sqrt() - radiis sample_ball_radii = distance * radiis * cos / (tmp * tmp + 1.0).sqrt() return sample_ball_radii

What is the meaning of the cos? Sound like the calculation is different from the paper. Thanks

wbhu commented 1 year ago

The cos means the cosine value of the angle between the ray and the principal axis of the camera. Please refer to https://github.com/wbhu/Tri-MipRF/blob/main/dataset/utils/cameras.py#L86