Image
Image object will be removed in a future release. Use message structure format
when you create ROS messages using the rosmessage
function, by specifying the Dataformat
name-value argument as "struct"
. You can use rosReadImage
and rosWriteImage
functions to read and write image data from ROS messages
respectively. For more information, see ROS Message Structure Functions.
Description
The Image
object is an implementation of the
sensor_msgs/Image
message type in ROS. The object contains the
image and meta-information about the message. You can create blank
Image
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.
Creation
Description
msg = rosmessage('sensor_msgs/Image')
creates an
empty Image
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 | (To be removed) Convert ROS image data into MATLAB image |
writeImage | (To be removed) Write MATLAB image to ROS image message |