boulabiar / HOGImage

HOG Visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C++ 100.0%