Closed SYSUykLin closed 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
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
@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