How to use Edge Histogram Descriptor (EHD) to compare 2 Image?
古いコメントを表示
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
2017 年 4 月 8 日
0 投票
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 件のコメント
Mei Synn Tan
2017 年 4 月 9 日
編集済み: Mei Synn Tan
2017 年 4 月 9 日
Image Analyst
2017 年 4 月 9 日
To call it you'd do this:
H = ehd(Img, Threshold);
but it looks like your function takes only one image, not two.
shalaw faraj
2020 年 3 月 6 日
Dear Image Analyst,
Can you help me with the code of EHD?
thanks
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
カテゴリ
ヘルプ センター および File Exchange で Image Filtering and Enhancement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!