Computer Vision Foundations · 免费预览
相关与模板匹配
互相关在不翻转模板的情况下滑动它,而归一化使匹配免受亮度陷阱的影响。
1. Correlation is convolution without the flip
Correlation is convolution without the flip
2. Finding a letter with a template
Finding a letter with a template
3. Normalizing the score
Normalizing the score
4. What matching survives
What matching survives
5. The flip is the whole difference
A kernel shaped like a rising ramp, small values on the left and large on the right, is applied to an image once by convolution and once by cross-correlation. How do the outputs differ?
6. Why the raw score betrays the letter
Raw cross-correlation is used to find a dark letter template on a bright scanned page, and the response map peaks strongly on a plain bright margin. What went wrong?
7. Subtracting the template mean
A template has pixel values . After subtracting the template's mean, write the value of the first pixel.