MATLAB: Can you please explain the meaning for below error meessage code

image processing

figure,imshow(im);
Error using imageDisplayValidateParams>validateCData (line 117)
Unsupported dimension.
Error in imageDisplayValidateParams (line 31)
common_args.CData = validateCData(common_args.CData,image_type);
Error in imageDisplayParseInputs (line 79)
common_args = imageDisplayValidateParams(common_args);
Error in imshow (line 198)
[common_args,specific_args] = ...

Best Answer

hi,
Your matrix is neither M-by-N nor M-N-3 check :
whos im
In order to visualize it, you need to adjust the size, if its an image sequences then try :
mplay(im)
Related Question