Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a 3D point cloud from depth data.
Computer Vision
point_cloud = depth_image.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using sum or mean instead of reshape changes the data incorrectly.
✗ Incorrect
We use reshape to convert the depth image into a 3D point cloud format.
2fill in blank
mediumComplete the code to estimate the camera pose using 3D points.
Computer Vision
pose = estimate_pose([1], camera_intrinsics) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 2D points or color images instead of 3D points.
✗ Incorrect
Estimating camera pose requires 3D points, so we use point_cloud_3d.
3fill in blank
hardFix the error in the code to transform 3D points using a rotation matrix.
Computer Vision
transformed_points = rotation_matrix @ [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not transposing points causes dimension mismatch errors.
✗ Incorrect
The points must be transposed to match matrix multiplication dimensions.
4fill in blank
hardFill both blanks to filter 3D points within a certain distance.
Computer Vision
filtered_points = {p for p in points if p.[1] [2] max_distance} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect method names or wrong comparison operators.
✗ Incorrect
We use norm() to get the distance of point p and keep points with distance less than max_distance.
5fill in blank
hardFill all three blanks to create a dictionary of 3D points and their colors for AR rendering.
Computer Vision
point_color_map = [1]: [2] for [3], [2] in zip(points_3d, colors) if [2] is not None
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up variable names or forgetting to check for None colors.
✗ Incorrect
We map each 3D point p to its color c, iterating over pairs from zip(points_3d, colors).