필터 지우기
필터 지우기

How to plot Hog features in the image

조회 수: 3 (최근 30일)
Elf
Elf 2017년 5월 3일
답변: Birju Patel 2017년 5월 8일
Hey
I am trying to feature extraction from an image for some certain points. First time I am using HogFeatureextraction. When I plot the features and valid points, I am getting result not on the certain points. I will use these features for training later on. For example, I have points on the straight line. Should not my features on where my certain points on the line. I am a little bit confused about concept of it. I used [features,validPoints] = extractHOGFeatures(I,points). x and y are my 10 positions in the image. In this case how is feature extraction working?
[features,validPoints] = extractHOGFeatures(I,[x,y]); figure; imshow(I); hold on; plot(features, 'ro'); plot(validPoints,'go');
Thank you

답변 (1개)

Birju Patel
Birju Patel 2017년 5월 8일
Hi,
The following example, will visualize the HOG features at a set of points:
I2 = imread('gantrycrane.png');
corners = detectFASTFeatures(rgb2gray(I2));
strongest = selectStrongest(corners, 3);
[hog2, validPoints, ptVis] = extractHOGFeatures(I2, strongest);
figure;
imshow(I2); hold on;
plot(ptVis, 'Color','green');
HTH

Community Treasure Hunt

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

Start Hunting!

Translated by