필터 지우기
필터 지우기

Sliding window and HOG FEATURE

조회 수: 3 (최근 30일)
aitali hassna
aitali hassna 2020년 4월 28일
편집: aitali hassna 2020년 4월 28일
Hello Friends ,
please i have a question about how can I draw a slidingwindow with HOG descriptor
i am trying to do with but i stuck with..
this is my code
[r,c]=size(img)
z=zeros(r,c);
for nbr=1:r% r is the nbr of row of input image
for nbc=1:c% c is the nbr of column of the input image
% imge2=readimage(imdsTest,2);
% img2=rgb2gray(imge2);
img3=imge2(g:g+10,f:f+12);% using input image size [g+10 f+12]
histo=extractHOGFeatures(img3, 'CellSize', [2 2]); %extract hog features
[pred ,scores]=predict(classifier,histo);%predictiin
if (string(pred)=='non_Stop')
z(g,f)=-scores(2);
% break;
end
f=1;
g=g+1;
end
g=1;
f=f+1;
end
Thank you

답변 (0개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by