Scene Change Detection code, Subscripted assignment dimension mismatch error
Show older comments
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.
Answers (1)
Image Analyst
on 15 Apr 2013
0 votes
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/
Categories
Find more on Simulink 3D Animation 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!