Return image data associated with movie frame
Create a surface plot. The data tip gives the x-, y- and z-coordinate of points along the surface.
getframe to capture the plot as a movie frame. The
'colormap' field is empty, therefore the movie frame contains a truecolor (RGB) image.
F = getframe
F = struct with fields: cdata: [357x452x3 uint8] colormap: 
Convert the captured movie frame to image data.
RGB = frame2im(F);
Display the truecolor image. The data tip gives information about the column and row indices and RGB value of pixels.
F— Movie frame
Movie frame, specified as a structure with two fields:
cdata — The image data stored as an
colormap — The colormap. If the
movie frame contains a truecolor (RGB) images, then this field
is empty (
RGB— Truecolor image
Truecolor image, returned as an m-by-n-by-3 numeric array.
X— Indexed image
Indexed image, returned as an m-by-n numeric matrix.
Colormap associated with indexed image
X, returned as
a c-by-3 numeric matrix with values in the range [0, 1].
Each row of
map is a three-element RGB triplet that
specifies the red, green, and blue components of a single color of the