MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / homogenize_points

Function homogenize_points

eval_code/recons/models/pi3/utils/geometry.py:116–120  ·  view source on GitHub ↗

Convert batched points (xyz) to (xyz1).

(
    points,
)

Source from the content-addressed store, hash-verified

114 return X_cam, valid_mask
115
116def homogenize_points(
117 points,
118):
119 """Convert batched points (xyz) to (xyz1)."""
120 return torch.cat([points, torch.ones_like(points[..., :1])], dim=-1)
121
122
123def get_gt_warp(depth1, depth2, T_1to2, K1, K2, depth_interpolation_mode = 'bilinear', relative_depth_error_threshold = 0.05, H = None, W = None):

Callers 1

forwardMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected