function points = selectPoints(img1, img2, n)
    f1 = figure(1);
    set(f1, 'Position', [1 1 300 300]);
    imshow(img1);
    
    f2 = figure(2);
    set(f2, 'Position', [1 300 300 300]);
    imshow(img2);
    p1 = [];
    p2 = [];
    for i=1:n
        figure(1);
        p1 = [p1; ginput(1)];
        figure(2);
        p2 = [p2; ginput(1)];
    end
    points = [p1 p2];
end