function [rgb X Y] = panorama(files, f, k1, k2)

for i=1:size(files,2)
    new_names{i} = strcat(files{i}, '.jpg');
    cyl = cylinder_projection(imread(files{i}), f, k1, k2);
    imwrite(cyl, new_names{i});
end

[X Y] = shifts(new_names);

rgb = stitch(new_names, X, Y);


