ROS Write Image, ROS 2 Write Image
Write image data to a ROS or ROS 2 message
ROS Toolbox / ROS
ROS Toolbox / ROS 2
The Write Image block writes image data to a ROS or ROS 2 image message. You can specify the encoding for the output image message. Use the ROS Publish or ROS 2 Publish block to publish the output image message to an active topic on the network.
Image — Input image signal
M-by-N-by-3 matrix | M-by-N matrix
Image pixel data, specified as an M-by-N-by-3 matrix for color images, and an M-by-N matrix for grayscale images.
AlphaChannel — Alpha channel for input image
Alpha channel for image, specified as an
M-by-N matrix. This matrix is the same height
and width as the image input. Each element has a value in the range
[0,1] that indicates the opacity of the corresponding pixel, with
a value of
0 being completely transparent.
The selected image encoding must support alpha channel.