To my taste this variable name is too long: remove the curr_scale_KPTS, i.e. curr_scale_orientations, curr_scale_kpts, curr_scale_mask, curr_scale_descriptors