The ability to use uint16 images with IMMOVIE is not availabe in MATLAB.
MATLAB's movie structure has only two color models --- indexed and RGB. MATLAB's Handle Graphics has colormap length limitations. IMMOVIE works within these limitations.
Due to these limitations in MATLAB which constrain the amount of colors that IMMOVIE can use, it will not display 65536 different shades of gray.
However, you can use colormaps with length 256, which is the same range as uint8 data. You will need to convert your uint16 data to uint8, with IM2UINT8, and specify a grayscale colormap with 256 colors.
The workaround using IM2UINT8 to convert the 16-bit data to 8-bit data is given below:
Xnew = im2uint8(X);
immovie(X,gray(256)).
Best Answer