Why do I get "illegal colormap error"

조회 수: 3 (최근 30일)
Alex
Alex 2015년 3월 23일
I am trying to build a movie and I am using im2frame. I do not understand why it is telling me that my colormap is invalid. My data is double precision and I am trying to use colormap gray below is my simple code and error that I am getting. Please help!
for i=1:f
F(i)=im2frame(mov(:,:,i),gray);
end
Error using im2frame
double-precision indexed CData values must be legal colormap indices: 1.0 <= value
<= length(colormap)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by