Skip to content

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 (little endian), 32FC1 (little endian), bayer_bggr8, bayer_gbrg8, bayer_grbg8, bayer_rggb8, bgr8, bgra8, mono8, mono16, rgb8, rgba8, uyvy or yuv422, yuyv or yuv422_yuy2

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
OMG IDLfoxglove::RawImage

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

Flora is developed on the source code of Foxglove and Lichtblick, adhering to the MPL 2.0 license.