필터 지우기
필터 지우기

Scene Change Detection code, Subscripted assignment dimension mismatch error

조회 수: 1 (최근 30일)
Lobna
Lobna 2013년 4월 15일
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.

답변 (1개)

Image Analyst
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/

Community Treasure Hunt

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

Start Hunting!

Translated by