Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match template with mask #568

Merged
merged 11 commits into from
May 5, 2024
Merged

Conversation

cospectrum
Copy link
Contributor

@cospectrum cospectrum commented Apr 21, 2024

2 new functions: match_template_with_mask and match_template_with_mask_parallel

To close #567

@cospectrum
Copy link
Contributor Author

Tests generated with OpenCV

Added tests for the parallelized version
@theotherphil
Copy link
Contributor

Please add a note in the doc comments for the new functions explaining how the mask is used. Otherwise LGTM, thanks!

@cospectrum
Copy link
Contributor Author

cospectrum commented May 4, 2024

Please add a note in the doc comments for the new functions explaining how the mask is used. Otherwise LGTM, thanks!

Should I write it as a latex formula using katexit, for example?

@theotherphil
Copy link
Contributor

Oh, that’s cool - I’ve not seen LaTeX used with docs.rs before.

It would make the code harder to read directly for people who don’t know LaTeX, but how can I resist properly rendered formulae in docs!

@cospectrum
Copy link
Contributor Author

@theotherphil

Without mask.

match

With mask.

match_masked

Cargo.toml Outdated Show resolved Hide resolved
@theotherphil theotherphil merged commit 1f09347 into image-rs:master May 5, 2024
15 checks passed
@theotherphil
Copy link
Contributor

Great, thanks @cospectrum !

@cospectrum cospectrum deleted the match-mask branch May 8, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Template matching with a mask
4 participants