Active1 year, 10 months ago
I am trying to implement this version of Histogram of Oriented Gradients(HOG). My code is below. The only difference in my code is that I've used
opencv
to read the image and convert it to grayscale.A sample input and output are:
Input:
Output:
Why is the output so cluttered? I have even tried the image with the astronaut in the skimage link above. For this too, I get a lot of clutter and the output is not at all like what is shown in the link. How can I fix this?
SibiHistogram of oriented gradients (HOG) is a feature descriptor used to detect objects in computer vision and image processing. The HOG descriptor technique counts occurrences of gradient orientation in localized portions of an image - detection window, or region of interest (ROI). The histogram of oriented gradients (HOG) is a feature descriptor used in computer vision and image processing for the purpose of object detection. The technique counts occurrences of gradient orientation in localized portions of an image.
Sibi54311 gold badge1010 silver badges3232 bronze badges
3 Answers
I could reproduce your error with your code and got the same cluttered image. I modified your code a bit, specifically changing the axis and i got the following output.
Here's the modified code.
Shawn MathewShawn Mathew1,40111 gold badge77 silver badges2020 bronze badges
I'm not sure why but the mistake is due to reading the image and converting it to grayscale with opencv. Doing both with matplotlib like the tutorial suggests, gives me the correct result.
SibiSibi54311 gold badge1010 silver badges3232 bronze badges
Just change the value
0.02
to something like 0.5
. That will make it darker.Change to
Nik1,42611 gold badge77 silver badges2020 bronze badges
DorianDorian
Not the answer you're looking for? Browse other questions tagged pythonimage-processingscikit-image or ask your own question.
(redirected from Histogram of Oriented Gradients)Acronym | Definition |
---|---|
HOG | Heart of Gold (band) |
HOG | Hand of God |
HOG | Harley Owners Group |
HOG | Hidden Object Game |
HOG | Hammer of Glory (annual relay; Philly Beer Week; Philadelphia, PA) |
HOG | House Of God (Lexington, Kentucky) |
HOG | Hemophilia of Georgia (Atlanta, GA) |
HOG | Home Owner Grant (Canada) |
HOG | Hoosier Oncology Group (clinical trials; Indianapolis, Indiana) |
HOG | Harley Davidson Incorporated (stock symbol) |
HOG | Histogram of Oriented Gradients (image processing) |
HOG | Heart of Greed (television) |
HOG | Head-On-Gutted (fish production/farming) |
HOG | Heavy Oil and Gas (industry sector) |
HOG | Hunter of Gunmen (USMC) |
HOG | Heroes of Gaming (forum) |
HOG | High-Order Godunov |
HOG | House of Guitars, Inc. (Rochester, NY) |
HOG | Homing Optical Guidance |
HOG | Heavy Ordnance Gunship |
HOG | Heavy Offensive Guard |
HOG | Hands-On General User Interface (OH-58DR helicopter) |
Want to thank TFD for its existence? Tell a friend about us, add a link to this page, or visit the webmaster's page for free fun content.
Link to this page: