Ruilong Li 8fa438cbda Fix camera conversion between opencv and pytorch3d
Summary:
For non square image, the NDC space in pytorch3d is not square [-1, 1]. Instead, it is [-1, 1] for the smallest side, and [-u, u] for the largest side, where u > 1. This behavior is followed by the pytorch3d renderer.

See the function `get_ndc_to_screen_transform` for a example.

Without this fix, the rendering result is not correct using the converted pytorch3d-camera from a opencv-camera on non square images.

This fix also helps the `transform_points_screen` function delivers consistent results with opencv projection for the converted pytorch3d-camera.

Reviewed By: classner

Differential Revision: D31366775

fbshipit-source-id: 8858ae7b5cf5c0a4af5a2af40a1358b2fe4cf74b
2021-10-07 10:15:31 -07:00
..
2021-09-29 18:49:09 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-08-12 14:06:32 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-09-29 18:49:09 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-08-17 04:26:27 -07:00
2021-08-12 14:06:32 -07:00
2021-06-22 03:45:27 -07:00
2021-09-02 09:32:29 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-24 15:56:01 -07:00
2021-06-22 03:45:27 -07:00
2021-09-30 00:48:52 -07:00
2021-09-29 18:49:09 -07:00
2021-06-22 03:45:27 -07:00
2021-07-01 16:08:40 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-10-02 13:40:16 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-28 04:28:06 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-28 06:31:35 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2021-06-22 03:45:27 -07:00
2020-01-23 11:53:46 -08:00