Skip to main content

RawImage

Raw image data

Panel Support

RawImage is used in the 3D Panel and Image Panel.

Data Structure

FieldTypeDescription
timestamptimeImage timestamp
frame_idstringImage reference coordinate system. The origin of the coordinate system is the optical center of the camera. +x points to the right of the image, +y points down, and +z points into the image plane.
widthuint32Image width
heightuint32Image height
encodingstringOriginal image data encoding format
stepuint32Length of a single line in bytes
databytesOriginal image data

encoding

Supported formats: 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 Implementation

Visualization data structures are framework-agnostic and can be implemented using any supported message encoding method:

Encoding MethodData Structure
ROS 1foxglove_msgs/RawImage
ROS 2foxglove_msgs/msg/RawImage
JSONfoxglove.RawImage
Protobuffoxglove.RawImage
FlatBuffersfoxglove.RawImage
OMG IDLfoxglove::RawImage

You must use the data structure names specified above so that the visualization can recognize the data structure.