Skip to content

Something confusing when computing the overlapping mask #64

Open
@ChenYutongTHU

Description

@ChenYutongTHU

Hi authors,

Thanks for this interesting work!

I have a question regarding the code for the overlapping mask computation.

Here, you compare the predicted depth map of view j, i.e. curr_depth_map, with the depth maps of previous views, but they are in different camera coordinate systems.

points_2d, _ = project_points(points, camera_intrinsics, extrinsics_w2c)
# Check if points are within image bounds
valid_points = (points_2d[:, 0] >= 0) & (points_2d[:, 0] < w) & \
(points_2d[:, 1] >= 0) & (points_2d[:, 1] < h)
# Check depth consistency using vectorized operations
valid_points_2d = points_2d[valid_points].astype(int)
valid_depths = depths[valid_points]

depth_differences = np.abs(valid_depths - curr_depth_map[y_coords, x_coords])
# Create a mask for points where the depth difference is below the threshold
consistent_depth_mask = depth_differences < depth_threshold

According to the paper, should we compute the difference between curr_depth_map and the projected depth map, e.g. the ignored 2nd returned item '_' here?

points_2d, _ = project_points(points, camera_intrinsics, extrinsics_w2c)

Please let me know if I miss something here.

Great thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions