Move feature extraction code to calculateHomography function
Slightly change the function's signature (rename parameter and make it const)