fix gpu HOG implementation:
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 27 Feb 2015 11:28:12 +0000 (14:28 +0300)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Sun, 19 Apr 2015 10:57:37 +0000 (13:57 +0300)
commit4539607ab100af875cb4ff7a66c22f3ac4989977
treeb81e95eed6159f4acf0e8e7c86168f68bebb92b7
parentb320138dba51a49b8a48a12e9b8b04747eb1e890
fix gpu HOG implementation:

move hog::set_up_constants from constructor to compute method

if user changed CUDA device between constructor and computation,
some variables were uninitialized
(cherry picked from commit 21bbed7bafd25114ff15d8012f3f8619d258d0c1)
modules/gpu/src/hog.cpp