Scene Change Detection code, Subscripted assignment dimension mismatch error
Afficher commentaires plus anciens
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.
Réponses (1)
Image Analyst
le 15 Avr 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/
Catégories
En savoir plus sur Simulink 3D Animation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!