function MyOpticalFlow( num_images, hood_size ) % function OpticalFlow( num_images, patch_size ) % - Take the number of images and the support neighborhood size % - Displays a representative image with the flow field superimposed close all; % Read the test image set into a grayscale image tensor for i=1:num_images im(:,:,i) = double( rgb2gray( imread( strcat( int2str(i), '.png' ) ) ) ); end % You have to do the rest ;-)