szymanowiczs/splatter-image

The question when calculating focal_pixel

Closed this issue · 2 comments

Hi @szymanowiczs,

Thanks for your great work. I am a new one in this field. I found a formula for focal_length to focal_pixel, F(mm) = F(pixels) * SensorWidth(mm) / ImageWidth (pixel). When you calculate focal_pixel here

focal_lengths_px = focal_lengths_ndc * image_side / 2
Why you set sensorwidth to 2? Thanks!

Thanks for your work! And I also wonder how to find some parameters in the configs too.
截屏2024-01-15 21 05 27

Hi @Xin-97 this is because CO3D cameras are in NDC coordinates: see bottom of the page here. https://pytorch3d.org/docs/cameras.