%% Read and Write CompressedImage Messages
% Read and write a sample ROS CompressedImage message by converting it.
% Load sample ROS messages and inspect the image message. The imgcomp object is a sample ROS CompressedImage message object.

exampleHelperROSLoadMessages
imgcomp

%
% Create a MATLAB image from the CompressedImage message using readImage and display it.

I = readImage(imgcomp);
imshow(I)

% Copyright 2019 The MathWorks, Inc.