def __init__(self, qcx, hs): super(QueryResult, self).__init__() self.qcx = qcx self.query_uid = params.get_query_uid() # Times self.assign_time = -1 self.verify_time = -1 # Assigned features matches self.cx2_fm = np.array([], dtype=FM_DTYPE) self.cx2_fs = np.array([], dtype=FS_DTYPE) self.cx2_score = np.array([]) # Spatially verified feature matches self.cx2_fm_V = np.array([], dtype=FM_DTYPE) self.cx2_fs_V = np.array([], dtype=FS_DTYPE) self.cx2_score_V = np.array([])
def query_result_fpath(hs, qcx, query_uid=None): if query_uid is None: query_uid = params.get_query_uid() qres_dir = hs.dirs.qres_dir fname = 'result_%s_qcx=%d.npz' % (query_uid, qcx) fpath = os.path.join(qres_dir, fname) return fpath