OpenCV  3.4.19
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

Explanation

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