MATLAB: Image substraction in multiple frames

image processing

How to substract previous frame between next frame in multiple frames with in a loop? Provide codes.

Best Answer

I1 = rand(50) ; % say a initial frame
for i = 1:N
I2 = rand(50) ; % say a present frame
I1 = I2-I1 ;
end
Related Question