Fixed several bugs. HOGs are now not dependent on padding from border. Can handle starting points (0,0) etc.
Magnitude and angle is now calculated using colour
First signs of a correct HOG implementation