我在Matlab中的手势识别的实时视频处理方面遇到了问题。我试过了
n = 20; % 'n' is the number of frames i want to capture
%preallocating frame()
for i=1:n
frame(:,:,:,i) = getsnapshot(vid);
end
但是当我尝试使用下面的循环访问每个数组时
for i=1:n
image=frame(:,:,:,i);
y=imresize(image,[50, 50]);
b=rgb2gray(y);
%%processing