2014-09-22 45 views
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是彩色圖像。

+0

是什麼在你的視頻的像素強度值的範圍之間? – 2014-09-22 13:18:25

回答

1

它的平均範圍的彩色視頻和像素強度的RGB 0-250