RawImage

A raw image

Panel support

RawImage is used in the Image panel.

Schema

fieldtypedescription
timestamptimeTimestamp of image
frame_idstringFrame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image.
widthuint32Image width
heightuint32Image height
encodingstringEncoding of the raw image data
stepuint32Byte length of a single row
databytesRaw image data

encoding

Supported values: 8UC1, 8UC3, 16UC1, 32FC1, bayer_bggr8, bayer_gbrg8, bayer_grbg8, bayer_rggb8, bgr8, bgra8, mono8, mono16, rgb8, rgba8, yuv422

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

encodingschema
ROS 1foxglove_msgs/RawImage
ROS 2foxglove_msgs/msg/RawImage
JSONfoxglove.RawImage
Protobuffoxglove.RawImage
FlatBuffersfoxglove.RawImage

You must use the schema names specified above for Foxglove Studio to recognize the schema.