image-rs / image-rs/imageproc

Add `MatchTemplateMethod` variant responding to `cv::TemplateMatchModes::TM_CCOEFF{,_NORMED}`

Open
#775 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
979
Forks
181
Avg merge
5m
Merged PRs (30d)
4

Description

OpenCV Docs

The TM_CCOEFF matching method includes a term of

$$
-\frac{1}{w\cdot h} \sum_{x'',y''}T(x'',y'')
$$

which can solve the problem of brightness difference between the template and the image.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked OpenCV documentation and locate the existing MatchTemplateMethod definition and template-matching entry point in imageproc. Compare the currently supported modes with TM_CCOEFF and TM_CCOEFF_NORMED, then use the repository's existing tests to verify the added variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, rust
Domain
computer-vision
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.