Scene Change Detection code, Subscripted assignment dimension mismatch error
1 次查看(过去 30 天)
显示 更早的评论
I was trying out this scene change code in the link
and I keep getting this error, How can I fix it? Why does it happen?
Subscripted assignment dimension mismatch.
Error in IMDB2 (line 88)
scene_out(:, 2*cols+1:end, :) = I;
Keep in mind I'm running it on a live video stream if that's of any relevance.
0 个评论
回答(1 个)
Image Analyst
2013-4-15
Put a breakpoint there and determine what size(scene) is, and what size(I) is, and what 2*cols+1 is. See if size(scene_out, 2)-(2*cols+1)+1 is the same length as I. Just standard debugging. Perhaps you may need to check out this excellent link: http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!