Getting SURF ready to add GPU code.