How to use Edge Histogram Descriptor (EHD) to compare 2 Image?
조회 수: 4 (최근 30일)
이전 댓글 표시
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)
댓글 수: 0
답변 (1개)
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
2020년 3월 6일
I'll try. What do I need to run your program? Attach everything I'll need.
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 Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!