Complete the code to create a 3D point cloud from depth data.
point_cloud = depth_image.[1]()We use reshape to convert the depth image into a 3D point cloud format.
Complete the code to estimate the camera pose using 3D points.
pose = estimate_pose([1], camera_intrinsics)Estimating camera pose requires 3D points, so we use point_cloud_3d.
Fix the error in the code to transform 3D points using a rotation matrix.
transformed_points = rotation_matrix @ [1]The points must be transposed to match matrix multiplication dimensions.
Fill both blanks to filter 3D points within a certain distance.
filtered_points = {p for p in points if p.[1] [2] max_distance}We use norm() to get the distance of point p and keep points with distance less than max_distance.
Fill all three blanks to create a dictionary of 3D points and their colors for AR rendering.
point_color_map = [1]: [2] for [3], [2] in zip(points_3d, colors) if [2] is not None
We map each 3D point p to its color c, iterating over pairs from zip(points_3d, colors).
