CompressedImage
Description
The CompressedImage
object is an implementation of the
sensor_msgs/CompressedImage
message type in ROS. The object
contains the compressed image and meta-information about the message. You can create
blank CompressedImage
messages and populate them with data, or
subscribe to image messages over the ROS network. To convert the image to a MATLAB® image, use the readImage
function.
Only images that are sent through the ROS Image Transport package are supported for conversion to MATLAB images.
Creation
Description
msg = rosmessage('sensor_msgs/CompressedImage')
creates an empty CompressedImage
object. To specify image
data, use the msg.Data
property. You can also get these
image messages off the ROS network using rossubscriber
.
Properties
Object Functions
readImage | Convert ROS image data into MATLAB image |
Examples
Version History
Introduced in R2019b