def shift_kpts(kpts, x, y): kpts_ = kpts.copy() kpts_[:, ktool.XDIM] += x kpts_[:, ktool.YDIM] += y vecs_ = pyhesaff.extract_vecs(img_fpath, kpts_) return kpts_, vecs_
def force_ori(kpts, ori): kpts_ = kpts.copy() kpts_[:, ktool.ORI_DIM] = ori vecs_ = pyhesaff.extract_vecs(img_fpath, kpts_) return kpts_, vecs_
def force_isotropic(kpts): kpts_ = kpts.copy() kpts_[:, ktool.SKEW_DIM] = 0 kpts_[:, ktool.SCAX_DIM] = kpts_[:, ktool.SCAY_DIM] vecs_ = pyhesaff.extract_vecs(img_fpath, kpts_) return kpts_, vecs_