clear; clc; addpath('../data'); Compile; I1 = imread('01.jpg'); I2 = imread('02.jpg'); I1gray = rgb2gray(I1); I2gray = rgb2gray(I2); % parameter numP = 100000; scale = 0; rotate = 0; [X1, X2] = gms_match(I1gray, I2gray, numP, scale, rotate); showMatchedFeatures(I1,I2,X1',X2','montage');