CalBackProject implement

asked 2016-11-08 17:07:26 -0600

greenworld gravatar image

Hi everyone, I want to make my own function calbackProject in c++. Can you help to give some instructions to do? Thank you!

edit retag flag offensive close merge delete



can you try to give some more explanation ?

berak gravatar imageberak ( 2016-11-08 19:43:28 -0600 )edit

Here is the description, but I am not clear enough to do. The functions calcBackProject calculate the back project of the histogram. That is, similarly to calcHist , at each location (x, y) the function collects the values from the selected channels in the input images and finds the corresponding histogram bin. But instead of incrementing it, the function reads the bin value, scales it by scale , and stores in backProject(x,y) . In terms of statistics, the function computes a probability of each element value in respect with the empirical probability distribution represented by the histogram.

greenworld gravatar imagegreenworld ( 2016-11-09 06:09:34 -0600 )edit