How to get the HOG descriptor visualization as an image?

2 Ansichten (letzte 30 Tage)
Brinda  N
Brinda N am 12 Okt. 2017
Beantwortet: Gayathri am 10 Jan. 2025 um 5:31
I need the visualizations of the HOG descriptor as an image that i can extract regions for my further analysis.

Antworten (1)

Gayathri
Gayathri am 10 Jan. 2025 um 5:31
Hello @Brinda N,
You can use the "extractHOGFeatures" function to compute the HoG features and obtain the visualization data.
img = imread('cameraman.tif');
[featureVector,hogVisualization] = extractHOGFeatures(img);
The "extractHOGFeatures" returns HOG feature visualization, using any of the preceding syntaxes. You can display this visualization using
plot(hogVisualization)
You can save this into a suitable image format.
For more information on "extractHOGFeatures" function, please refer to the below documentation link.
Hope you find this information helpful!

Kategorien

Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by