also i.m using this code:
clear,clc
% compute the background image
Imzero = zeros(240,320,3);
for i = 1:5
Im{i} = double(imread(['DATA/',int2str(i),'.jpg']));
Imzero = Im{i}+Imzero;
end
Imback = Imzero/5;
[MR,MC,Dim] = size(Imback);
but it is show me an error:
Undefined function or variable 'Imzero'.
Error in extractball (line 8)
Imback = Imzero/5;
i don't know what to do here.. please help me out.. thanks in advance