Skip to content

zhouzq-thu/HOGImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HOG Visualization Using OpenCV(C++)

Easy to use:

API: API

#include "HOGImage.hpp"

int main(int argc, const char * argv[]) {
    Mat image = imread("images/teaser-original.jpg");
    HOGDescriptor hogDesc(image.size(),
                          Size(20, 20),
                          Size(10, 10),
                          Size(10, 10),
                          9);

    vector<float> desc;
    string name = "HOG window";
    namedWindow(name);
    imshow(name, HOGImage(image, hogDesc, 5, 3));
    waitKey();
}

Example

Test image (The test image is from http://www.cs.columbia.edu/~vondrick/ihog/. If it is copyrighted, contact me and I will delete.):

test_image

Result: hogImg

About

HOG Visualization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages