Medical image, specified as a medicalImage object.
Frame index, specified as a positive integer scalar in the range [1,
numFrames], where numFrames is the number of
frames in the image or series of images in medImage. The number of
frames is specified by the NumFrames property of
medImage.
Pixel data of the extracted frame, returned as an
m-by-n numeric matrix, where
m and n are the first two dimensions of the
image frame extracted from medImage. The X
output matrix is the same data type as the Pixels property of
medImage.