Fix 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).