I am reading one image and used the same as a reference image as program given below , but if I am using seven frames of video sequence, and need to correlate with reference image , what modification i need to do?
looking forward for your reply !!!
image=imread('image.JPG');
image=rgb2gray(image);
imagecube=zeros(size(image,1),size(image,2),3);
imagecube(:,:,1)=image;
imagecube(:,:,2)=image;
imagecube(:,:,3)=image;
frames = imagecube
Ref = double(image)