#df2.figure(fignum=fnum) #df2.show_matches_annote_res(res, hs, cx, draw_pts=False, plotnum=(2,2,1), SV=False) #df2.show_matches_annote_res(res, hs, cx, draw_pts=False, plotnum=(2,2,2), SV=True) #df2.show_matches_annote_res(res2, hs, cx, draw_pts=False, plotnum=(2,2,3), SV=False) #df2.show_matches_annote_res(res2, hs, cx, draw_pts=False, plotnum=(2,2,4), SV=True) #fnum += 1 return fnum if __name__ == '__main__': from multiprocessing import freeze_support import load_data2 import chip_compute2 import params freeze_support() print('[mc2] __main__ = match_chips2.py') # --- CHOOSE DATABASE --- # db_dir = params.DEFAULT hs = load_data2.HotSpotter() hs.load_tables(db_dir) hs.load_chips() hs.set_samples() hs.load_features() hs.load_matcher() #qcx = 111 #cx = 305 qcx = helpers.get_arg_after('--qcx', type_=int) if qcx is None: qcx = 0 matcher_test(hs, qcx) exec(df2.present())
ax.set_xlim(-1,1) ax.set_ylim(-1,1) df2.draw_sift(desc) if __name__ == '__main__': print("[patch] __name__ == 'extract_patch.py'") if not 'hs' in vars(): if len(sys.argv) == 1: db_dir = params.GZ qcx = 111 low = 0 high=6 else: db_dir = params.DEFAULT qcx = helpers.get_arg_after('--qcx', type_=int) low = helpers.get_arg_after('--low', type_=int) high = helpers.get_arg_after('--high', type_=int) if qcx is None: raise Exception('fds') qcx = 1 if low is None: low = 0 if high is None: high = 6 hs = ld2.HotSpotter() hs.load_all(db_dir) #test(hs, qcx) #test3() test2(hs, qcx, low=low, high=high)