www.gusucode.com > vision 源码程序 matlab案例代码 > vision/ExtractAndPlotHOGFeaturesExample.m

    %% Extract and Plot HOG Features
%
%% 
% Read the image of interest.
img = imread('cameraman.tif');
%% 
% Extract HOG features.
[featureVector,hogVisualization] = extractHOGFeatures(img);
%% 
% Plot HOG features over the original image.
figure;
imshow(img); 
hold on;
plot(hogVisualization);