The below link shows an algorithm I want to try and use and I have a few questions about.
Firstly, I am assuming that when i=0, the first frame of a video is titled caltrain000.
for i = 0:30
imgINumber = i;
imgPNumber = i+2;
I also want to know what the below code does? Because when I try and run the code with my own video frames I get the error - "Index exceeds matrix dimensions".
imgI = imgI(:,1:352);
imgP = imgP(:,1:352);
Please help with these two questions