필터 지우기
필터 지우기

How to perform Sobel filter and HOG ?

조회 수: 1 (최근 30일)
Najwa Samlan
Najwa Samlan 2019년 10월 13일
댓글: KALYAN ACHARJYA 2019년 10월 20일
Hi. I need some help. I want to extract features from signature image by using HOG features. But before that, I need to
1)Calculate horizontal and vertical brightness values at each pixel. Then, get the horizontal and vertical gradient magnitude and direction.
2) At HOG stage, seperate blocks into 8x8 cell and each cell contain its own magnitude and direction
How can I code this ? Urgent, I really need help. Im stuck right now
a= getimage(handles.axes2)
[Gx,Gy]=imgradientxy(a,'Sobel')
[Gmag,Gdir]=imgradient(Gx,Gy)

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 13일
편집: KALYAN ACHARJYA 2019년 10월 13일
How to perform Sobel filter and HOG ?
Read Input image, say "I"
Sobel, see detail here
result=edge(I);
HoG, see detail here
features_data=extractHOGFeatures(I)
Hope it helps!
  댓글 수: 2
Najwa Samlan
Najwa Samlan 2019년 10월 14일
Ok I see it. But how can I combine to display both at the same axes ?
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 20일
You mean both images?? or look imsowpair

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by