If I have an image like this
1 2 3 4 5 6 7 8 a b c d e f g h ...
And I apply a Haar-like feature with a template
1 1 1 1 -1 -1 -1 -1
Then in the first position we get
X1 = 1+2+3+4+a+b+c+d. If we slide one side to the right, we again get
X2 = 2+3+4+5+b+c+d+e.
This way we will get
X3 and so on. Now, how are these values combined to get the feature? Because when we say a feature we are not just running that template in one place, rather we will run it over multiple places in the image. It gives lots of values like
X3 and so on. Now, how are those combined to get the final feature which will be passed to Adaboost?