Filter löschen
Filter löschen

Scene Change Detection code, Subscripted assignment dimension mismatch error

1 Ansicht (letzte 30 Tage)
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.

Antworten (1)

Image Analyst
Image Analyst am 15 Apr. 2013
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/

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by