Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

HOGDescriptor::compute parameters

$
0
0
My usecase is simple. Given an image I want to find hog descriptors of **a particular** window (that is I just want to compute HOG features in a window). It seems that I should use `HOGDescriptor::compute`. But I am not understanding what are the different parameters: virtual void cv::HOGDescriptor::compute ( InputArray img, std::vector< float >& descriptors, Size winStride = Size(), Size padding = Size(), const std::vector< Point >& locations = std::vector< Point >() ) The parameter `locations` makes sense which **I assume** tells it where to find the descriptors. The descriptors returned would I have a dimension as computed by the the parameters specified by HOGDescriptor **constructor**: (_winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins ...) What I don't understand are the parameters `winStride, padding`. I understand these parameters are used the way a detection window moves for exhaustive detection. But what are they doing in this function `compute`. Or it is doing something else?! I do not want to compute descriptors in all possible windows, but in a particular window, so that I can feed the descriptor in my custom svm. Thanks in advance.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>