Fix bugs in HOG
Replaced convolve1d by ad-hoc gradient computation
Code valid for all image dtypes
Minor fix
Merge pull request #1105 from pmneila/master

Minor fix for bugs in HOG implementation