-
Notifications
You must be signed in to change notification settings - Fork 110
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
Visual artifacts on image_rect ROS topic when using "bayer_rggb8" encoding #48
Comments
I've run into this as well. In other CV applications a de-Bayering step is required before rectification to calculate the color values for each pixel from their compressed representation. I think the problem is that at line 521 in pylon_camera/src/pylon_camera/pylon_camera_node.cpp Lines 513 to 523 in 2a7a068
This might be tricky to fix while still keeping the node's image processing pipeline generic to image formats. One option would be to check the encoding at line 517 and convert to an uncompressed image format if needed. |
I ran into this exact issue as well and found two ways to fix it: A. Convert the image before rectification: B. Publish the rectified image via image_transport instead of ros::Publisher* Because of solution B I actually think the issue is that ros::Publisher* does not support the 'bayer_bggr8' encoding. |
When ROS-Driver for Basler Cameras is configured to use
bayer_bggr8
efficient encoding, visual artifacts appear in rectified images. Image stream onimage_raw
topic is OK in both cases.What is the root cause of this issue?
Attached:
image_rect
topic when in .yaml fileimage_encoding: "bayer_rggb8"
image_encoding: "rgb8"
in yaml file.The text was updated successfully, but these errors were encountered: