errorneous code. Just giving image of Kalman Filter, which it is not.
line = size(video,1);
column = size(video,2);
time = size(video,3);
this code tries to access first frame of given video file. But video variable used here is a string, and not a video object. He never used video object to extract the frames.