histograms of oriented gradients for human detection n
play

Histograms of Oriented Gradients for Human Detection N. Dalal and B. - PowerPoint PPT Presentation

Histograms of Oriented Gradients for Human Detection N. Dalal and B. Triggs CVPR 2005 HOG Steps HOG feature extraction Compute centered horizontal and vertical gradients with no smoothing Compute gradient orientation and magnitudes


  1. Histograms of Oriented Gradients for Human Detection N. Dalal and B. Triggs CVPR 2005

  2. HOG Steps  HOG feature extraction  Compute centered horizontal and vertical gradients with no smoothing  Compute gradient orientation and magnitudes  For color image, pick the color channel with the highest gradient magnitude for each pixel.  For a 64x128 image,  Divide the image into 16x16 blocks of 50% overlap.  7x15=105 blocks in total  Each block should consist of 2x2 cells with size 8x8.  Quantize the gradient orientation into 9 bins  The vote is the gradient magnitude  Interpolate votes bi-linearly between neighboring bin center.  The vote can also be weighted with Gaussian to downweight the pixels near the edges of the block.  Concatenate histograms (Feature dimension: 105x4x9 = 3,780)

  3. Computing Gradients    ( ) ( ) f x h f x h  Centered:  ' ( ) lim f x  0 h 2 h  Filter masks in x and y directions -1  Centered: -1 0 1 0 1  Gradient  Magnitude:   2 2 s s s x y θ  Orientation: s   arctan( y ) s x 3

  4. Blocks, Cells Block 2 Block 1  16x16 blocks of 50% overlap.  7x15=105 blocks in total  Each block should consist of 2x2 cells with size 8x8. Cells

  5. Tri-linear Interpolation  Each block consists of 2x2 cells with size 8x8  Quantize the gradient orientation into 9 9 Bins bins (0-180)  The vote is the gradient magnitude Bin centers  Interpolate votes linearly between neighboring bin centers.  Example: if θ =85 degrees.  Distance to the bin cente Bin 70 and Bin 90 are 15 and 5 degrees, respectively.  Hence, ratios are 5/20=1/4, 15/20=3/4.  The vote can also be weighted with Gaussian to downweight the pixels near the edges of the block .

  6. Final Feature Vector  Concatenate histograms  Make it a 1D matrix of length 3780.  Visualization 6

  7. Results Navneet Dalal and Bill Triggs “Histograms of Oriented Gradients for Human Detection” CVPR05

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend