What should I insert for 'MAP' in immovie(X,MAP)?
Show older comments
I'm not sure what to put for the input argument 'MAP' in immovie(X,MAP). I have the X (a 900x1200x1x60 matrix) but any input I have for MAP resullts in error. I've tried variations of gray(256) and colormap. Each matrix is in color (but are still 2D matrices) so I expect my movie to also be in color. This is the error I am getting.
Error using im2uint8 (line 83) Invalid indexed image: an index was less than 1.
Error in immovie>parse_inputs (line 88) X = im2uint8(X,'indexed');
Error in immovie (line 38) [X,map] = parse_inputs(varargin{:});
Error in TweetAnalysis (line 993) mov=immovie(statemat,double(colormap));
Accepted Answer
More Answers (0)
Categories
Find more on Basic Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!