Skip to main content
QUICK REVIEW

[Paper Review] A Fast HOG Descriptor Using Lookup Table and Integral Image

Chunde Huang, Jiaxiang Huang|arXiv (Cornell University)|Mar 18, 2017
Advanced Image and Video Retrieval TechniquesComputer Science8 references11 citations
TL;DR

This paper proposes a fast HOG descriptor using a precomputed lookup table for oriented gradient computation and integral images for efficient histogram aggregation. By replacing expensive trigonometric calculations with table lookups and enabling O(1) histogram queries via integral images, the method achieves 5x–10x speedup over standard HOG, reducing processing time to under 15 ms for 800×600 images on a modern CPU.

ABSTRACT

The histogram of oriented gradients (HOG) is a widely used feature descriptor in computer vision for the purpose of object detection. In the paper, a modified HOG descriptor is described, it uses a lookup table and the method of integral image to speed up the detection performance by a factor of 5~10. By exploiting the special hardware features of a given platform(e.g. a digital signal processor), further improvement can be made to the HOG descriptor in order to have real-time object detection and tracking.

Motivation & Objective

  • Address the computational bottleneck of traditional HOG descriptor computation in real-time object detection.
  • Reduce the time cost of oriented gradient calculation, a major performance bottleneck in HOG pipelines.
  • Enable fast histogram aggregation across sliding windows using integral images to accelerate region feature extraction.
  • Optimize the HOG pipeline for embedded systems and DSP platforms with limited precision and high throughput demands.
  • Achieve real-time performance on standard and embedded hardware without sacrificing detection accuracy.

Proposed method

  • Precompute a 511×511 lookup table for magnitude and orientation of gradient pairs (dx, dy) to replace costly trigonometric operations.
  • Use a simplified HOG variant where gradient magnitudes are set to unity, focusing only on orientation bins to reduce computation.
  • Discretize gradient orientations into N_b bins (e.g., 8 or 9) and assign each pixel to a single bin based on its orientation.
  • Construct N_b separate binary images, one per bin, where each pixel is 1 if its gradient direction falls into that bin, 0 otherwise.
  • Apply the integral image (summed area table) technique to each bin-specific image to enable constant-time rectangular sum queries.
  • Use the integral images to compute histogram counts for any rectangular region in O(N_b) time, independent of region size.

Experimental results

Research questions

  • RQ1Can a lookup table significantly reduce the time required to compute oriented gradients in the HOG descriptor?
  • RQ2Can integral images be effectively applied to accelerate histogram computation over sliding windows in HOG feature extraction?
  • RQ3What performance gains can be achieved by combining lookup tables and integral images in a HOG pipeline?
  • RQ4To what extent can the HOG descriptor be optimized for real-time operation on standard and embedded processors?
  • RQ5Does discarding gradient magnitude information affect detection performance when using optimized HOG features?

Key findings

  • The proposed method achieves a 5x to 10x speedup in HOG feature computation compared to the standard OpenCV implementation.
  • For an 800×600 image, the optimized HOG descriptor processes in approximately 30 ms on a common desktop with an Intel i5 CPU.
  • Using 64-bit compilation reduces processing time to about 15 ms for the same image size.
  • For smaller input sizes (352×288), processing time drops to under 8 ms, and below 5 ms with 64-bit code.
  • The method enables real-time object detection on standard and embedded platforms, especially when combined with optimized low-precision data types.
  • Discarding gradient magnitude has minimal impact on detection performance, allowing further speedup without significant accuracy loss.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.