Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Undistorting RGB and Depth data (for undistorted point clouds) #247

Open
Stan850 opened this issue May 20, 2022 · 0 comments
Open
Labels
bug Something isn't working triage needed The Issue still needs to be reviewed by the Azure Kinect ROS Driver Team

Comments

@Stan850
Copy link

Stan850 commented May 20, 2022

Hi, I have tried to undistort RGB and depth data from the Azure Kinect ros driver however the images I obtain still look warped (see examples below). I am focusing on the RGB case here because I have done the same processing steps for depth data.

The first approach I used was to use kinect_rgbd.launch to obtain the rectified images which is supposed to use the image_proc and depth_image_proc nodes to undistort and rectify images. However as marked on the image, there is still some warping happening around the corners of the image:

kinect_rgbd

The second approach I used was to modify the ros driver to undistort both rgb (and depth images) before publishing to the topics /rgb/image_raw and /depth/points2. In this case, I feed in the existing rgb_buffer_mat data into cv::undistort along with the factory camera intrinsics and distortion coefficients. I perform the same operation on the depth_frame_buffer_mat data before it is fed into the depth_image_to_point_cloud function to convert the depth data to a point cloud.

When I extract a RGB image, I get a similar output as observed in the first approach I used:

manual_undistorted

I am posting an example of what the raw output looks like, as seen below:

image_raw

Is there a reason why the warping occurs or how to eliminate it? I need to use undistorted data in my case for an object detection algorithm that only supports undistorted data.

Desktop Environment Details:

  • OS: Windows 10 Pro
  • Version: 21H1

Thanks in advance!

@Stan850 Stan850 added bug Something isn't working triage needed The Issue still needs to be reviewed by the Azure Kinect ROS Driver Team labels May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage needed The Issue still needs to be reviewed by the Azure Kinect ROS Driver Team
Projects
None yet
Development

No branches or pull requests

1 participant