Commit c98858a5 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez
Browse files

Merge pull request #83 from acpaquette/bugfix

refactor image match
parents 61e54f1d 1e6c4adb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -28,15 +28,15 @@ def match_images(args, config_dict):
    cg.match_features()

    # Apply outlier detection
    cg.symmetry_checks()
    cg.ratio_checks()
    cg.apply_func_to_edges('symmetry_check')
    cg.apply_func_to_edges('ratio_check')

    # Compute a homography and apply RANSAC
    cg.compute_fundamental_matrices(clean_keys=['ratio', 'symmetry'])
    cg.apply_func_to_edges('compute_fundamental_matrix', clean_keys=['ratio', 'symmetry'])

    cg.subpixel_register(clean_keys=['fundamental', 'symmetry', 'ratio'], template_size=5, search_size=15)
    cg.apply_func_to_edges('subpixel_register', clean_keys=['fundamental', 'symmetry', 'ratio'], template_size=5, search_size=15)

    cg.suppress(clean_keys=['fundamental'], k=50)
    cg.apply_func_to_edges('suppress', clean_keys=['fundamental'], k=50)

    cnet = cg.to_cnet(clean_keys=['subpixel'], isis_serials=True)