Fixed build for samples/cpp/train_HOG.cpp.

get_hogdescriptor_visu is passed img->clone(), which is not usable
as a non-const reference (and it doesn't modify the argument, anyway).
Merge pull request #2212 from SpecLad:hog-sample-const-mat