Why is the image from PointGray camera displaying in grayscale?
I'm pulling an image stream from a PointGrey camera using the FlyCapture SDK. When I display the camera feed in PointGrey's FlyCap2, the image displays in color, but when I look at the feed in RVIZ (or export the bag to jpg) it shows grayscale images. How should I address this?
Please edit your question to show the exact command you are running to view the image (or which topic you are using in rviz) and which topics are available. My suspicion is that you are not looking at the color image topic, but without more information it is difficult to provide an answer.
I'm getting the
image_raw
camera topic that's published by the referenced script. The raw image is coming over from the FlyCapture SDK in the bayer_gbrg8 encoding formatDo you see any topics such as
image_color
orimage_rect_color
? You probably need to run a node like image_proc to convert your raw images and calibration info (sensor_msgs/CameraInfo
) to color/rectified images.FYI, eventually you will need a separate calibration message (
sensor_msgs/CameraInfo
) per camera. Right now you have an array of images (one for each detected camera) but only a single calibration message being published.image_proc did the trick! Thanks. I used this gist to publish
CameraInfo
for each camera from the yaml config file: https://gist.github.com/rossbar/ebb28...