Detect corners with FAST : Get the centre of mass by getting average and value from the dataset. : For each value in the dataset, multiply by 2 and by 2, and take the average for that. You should now have two points: and , and also the dataset. Go through each point in the dataset and calculate the angles and distances between , , and Then run assignment problem using the angles and distances. This should allow you to geometrically match two images.