How to use Edge Histogram Descriptor (EHD) to compare 2 Image?

조회 수: 4 (최근 30일)
Mei Synn Tan
Mei Synn Tan 2017년 4월 8일
댓글: shalaw faraj 2020년 3월 6일
My problem is I do not know how to write EHD code to compare 2 image. Please help me, thanks
z = clock;
I = imread('a.jpg');
I = rgb2gray(I);
EHD
h = imhist(I); % this will have default bins 256
J = imread('b.jpg');
J = rgb2gray(J);
EHD
h1 = imhist(J); % this will have default bins 256
E_distance = sqrt(sum((h-h1).^2));
E_distance
etime(clock,z)

답변 (1개)

Image Analyst
Image Analyst 2017년 4월 8일
I don't know that algorithm though what you did doesn't sound or look right. The histogram doesn't have any information on whether or not there are edges in an image.
  댓글 수: 5
Image Analyst
Image Analyst 2020년 3월 6일
I'll try. What do I need to run your program? Attach everything I'll need.
shalaw faraj
shalaw faraj 2020년 3월 6일
Dear Image Analyst,
some of your code was changed to comment, what are they?
I run your code but the output is the 1x150double matrix, what is this ? please help me

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

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by