title: OpenCV 3.0 - HOGDescriptor::compute() code example
body: <p>These are the signatures of <code>HOGDescriptor</code> C'tor and method <code>compute()</code> in OpenCV3.0:</p>
  
  <pre><code>HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, 
                    int _nbins, int _derivAperture=1, double _winSigma=-1, 
                    int _histogramNormType=HOGDescriptor::L2Hys, double _L2HysThreshold=0.2, 
                    bool _gammaCorrection=false, int _nlevels=HOGDescriptor::DEFAULT_NLEVELS, 
                    bool _signedGradient=false)
  
  
  virtual void compute (InputArray img, std::vector&lt; float &gt; &amp;descriptors,
                            Size winStride=Size(), Size padding=Size(), 
                            const std::vector&lt; Point &gt; &amp;locations=std::vector&lt; Point &gt;()) const
  </code></pre>
  
  <p>Does anyone have an example code or an idea of how to compute one vector for <strong>THE WHOLE</strong> image?</p>