OpenCV  4.1.0
Open Source Computer Vision
Back Projection

Prev Tutorial: Histogram Comparison

Next Tutorial: Template Matching

Goal

In this tutorial you will learn:

Theory

What is Back Projection?

How does it work?

Code

[block] [block] [block]

Explanation

[block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block] [block]

Results

Here are the output by using a sample image ( guess what? Another hand ). You can play with the bin values and you will observe how it affects the results:

Back_Projection1_Source_Image.jpg
R0
Back_Projection1_Histogram.jpg
R1
Back_Projection1_BackProj.jpg
R2