Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
bd7c21d8
Commit
bd7c21d8
authored
Jul 15, 2016
by
Arthur Cinader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix explanation to refelect how matching currently works.
parent
0ed250cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
template_matching.markdown
...c/histograms/template_matching/template_matching.markdown
+6
-7
No files found.
doc/tutorials/imgproc/histograms/template_matching/template_matching.markdown
View file @
bd7c21d8
...
...
@@ -70,13 +70,12 @@ that should be used to find the match.
-
The mask must have the same dimensions as the template
-
The mask should be a grayscale image where each pixel contains some value from black to white.
Pixels that are white are fully included in calculating the best match. Pixels that are black
are excluded from the match. A value between black and white will include some of
the match in proportion to how dark the pixel is. Although the image should be a grayscale whose
output from the file command should look something like: "PNG image data, 128 x 128, 8-bit gray
+alpha, non-interlaced", opencv will read the image into an rgb matrix that will be applied
during the image match.
-
The mask should have a CV_8U or CV_32F depth and the same number of channels
as the template image. In CV_8U case, the mask values are treated as binary,
i.e. zero and non-zero. In CV_32F case, the values should fall into
[
0..1
]
range and the template pixels will be multiplied by the corresponding mask pixel
values. Since the input images in the sample have the CV_8UC3 type, the mask
is also read as color image.

...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment