"Assignment has more non-singleton rhs dimensions than non-singleton subscripts" error
Mostra commenti meno recenti
Any answer from you it will be priceless.
My images are 1701 from a highway (colored but i turn them in gray), where i am trying to do background substraction. % I have this code:
imgname = [imPath filesep filearray(1).name];
I = imread(imgname);
I=rgb2gray(I);
VIDEO_WIDTH = size(I,2);
VIDEO_HEIGHT = size(I,1);
ImSeq = zeros(VIDEO_HEIGHT, VIDEO_WIDTH, NumImages);
for i=1:NumImages
imgname = [imPath filesep filearray(i).name];
ImSeq(:,:,i) = imread(imgname);
end
disp(' ... OK!');
And in the ImSeq(:,:,i) line i am taking the "Assignment has more non-singleton rhs dimensions than non-singleton subscripts" error.
How can I fix it?
1 Commento
XRYSANTHI
il 3 Ott 2016
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Tables in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!