0
我正在嘗試將一系列圖像寫入視頻。我得到以下錯誤:與im2frame函數相關的錯誤
In VideoWriter.VideoWriter>VideoWriter.close at 307
In VideoWriter.VideoWriter>VideoWriter.delete at 256
Error using im2frame
Indexed movie data values must be legal colormap indices:
1.0 <= value <= length(colormap) for double-precision movie data, and 0 <=
value <= length(colormap)-1 for uint8 movie data
Error in VideoStabilization1 (line 134)
writeVideo(writerObj,im2frame(I,cmap));
我應該如何解決它?
我使用下面的代碼行寫的視頻:
writeVideo(writerObj,im2frame(I,cmap));
I
是彩色圖像。
是什麼在你的視頻的像素強度值的範圍之間? – 2014-09-22 13:18:25