Depth image alignment on the D435i camera
Is the alignment process for the D435i camera to align the depth image to the color image or the color image to the depth image? Also, which field of view (FOV) is larger for color images or depth images?
-
Hello, alignment can be performed both ways - depth to color, or color to depth.
On the D435i camera model the RGB field of view is smaller than the depth field of view. This means that when depth to color alignment is performed, the outer edges of the aligned image may be cut off.
-
MartyG I cannot see the topic in ROS2 wrapper for color to depth alignment? Is this available for ROS2 wrappers?
-
MartyG I cannot see the topic in ROS2 wrapper for color to depth alignment? Is this available for ROS2 wrappers?
-
The ROS2 wrapper only supports depth to color when align_depth.enable is true. Color to depth is not supported in the wrapper. When align_depth.enabled is set to true, aligned topics should be published.
/camera/camera/aligned_depth_to_color/camera_info
/camera/camera/aligned_depth_to_color/image_raw -
In pyrealsense2, alignment can be performed with the align_to instruction. The SDK has an example program called align_depth2color.py
By default it uses depth to color alignment. You can change it to color to depth alignment simply by changing the
align_to instruction from this:
align_to = rs.stream.color
To this:
align_to = rs.stream.depth
Please sign in to leave a comment.
Comments
7 comments