open-forest-observatory / geograypher

Enabling Geospatial Predictions from Individual Drone Images
https://open-forest-observatory.github.io/geograypher/
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Determine the location on a single face that a projected ray intersects #141

Open russelldj opened 4 months ago

russelldj commented 4 months ago

For some applications like detection tasks we may want to localize a small object precisely. Currently, we can only determine what face a ray intersects with. However, it's mathematically simple to determine the exact location of the intersection. This information is actually computed in PyTorch3D (another reason to work on #117) as the barycentric return of the rasterizer. We could also write our own code to take the ray and the triangle it intersects to compute the barycentric coordinates. An example that seems somewhat relevant is here.