You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
pytorch3d/pytorch3d/renderer/cameras.py
Lines 622 to 638 in 59972b1
In
FoVPerspectiveCameras
the projection_matrix is computed as :where
s1 = 2*znear / (max_x - min_x), w1 = (max_x - min_x) / (max_x - min_x)
,However, if we verify this
K
by setting(x, y, z, w) = (min_x, min_y, znear, w=1)
in world coordinates,after projection it becomes
then after dividing
x_ndc = x_clip / w_clip
, clearlyx_ndc
does not get mapped to-1
.But if
w1
is- (max_x - min_x) / (max_x - min_x)
, thenmin_x
can be mapped to-1
.This is currently not an issue because in
FoVPerspectiveCameras
,max_x
always equals- min_x
, sow1
andh1
are always zeros.Beta Was this translation helpful? Give feedback.
All reactions