www.gusucode.com > vision 源码程序 matlab案例代码 > vision/ExtractHOGFeaturesAroundCornerPointsExample.m
%% Extract HOG Features Around Corner Points % %% % Read in the image of interest. I2 = imread('gantrycrane.png'); %% % Detect and select the strongest corners in the image. corners = detectFASTFeatures(rgb2gray(I2)); strongest = selectStrongest(corners,3); %% % Extract HOG features. [hog2, validPoints,ptVis] = extractHOGFeatures(I2,strongest); %% % Display the original image with an overlay of HOG features around the strongest corners. figure; imshow(I2); hold on; plot(ptVis,'Color','green');