detect values from hough transform

i have applied hough transform on my palm print image(which i am using for authentication). i want to extract the values got from hough transform so that i can apply euclidean distance on it. can anyone please tell me how to detect/get the values from hough transform

回答 (1 件)

Image Analyst
Image Analyst 2017 年 4 月 1 日

0 投票

Simply accept the values hough() returns to you. From the help:
[H,theta,rho] = hough(BW) computes the Standard Hough Transform (SHT) of the binary image BW.
So make sure there are three variables on the left hand side to accept the values of the hough transform or else they'll be thrown away.

5 件のコメント

Shweta Naiskar
Shweta Naiskar 2017 年 4 月 1 日
@Image Analyst i am giving the output of repaired image as an input for hough transform and i have used the following code:
[H,T,R] = hough(R,'RhoResolution',0.1,'ThetaResolution',0.1);
figure
imshow(imadjust(mat2gray(H)),'XData',T,'YData',R,... 'InitialMagnification','fit');
title('Hough transform');
xlabel('\theta'), ylabel('\rho');
axis on, axis normal, hold on;
colormap(hot);
it gives an output of hough transformed image. i want to extract those values so that i can use it in euclidean distance to compare two images. could you please explain me using a sample code as i dont know much about matlab/image processing and still learning it. if you have any easier way please let me know. thank you.
Image Analyst
Image Analyst 2017 年 4 月 1 日
Attach "R" so I can run your code. And tell me what distances you want to compare - between what lines or blobs/regions in the image. Or do you want to compute MSE using immse()?
Shweta Naiskar
Shweta Naiskar 2017 年 4 月 2 日
hello i got the expected output of hough transform but how do i used it to get the difference between two images using euclidean distance i am attaching my code for your reference please help
Image Analyst
Image Analyst 2017 年 4 月 2 日
I still can't run your code. You forgot to attach 'C:\Users\DELL\Desktop\PalmVein\DataBase\Train\user 2\IMG_002 (5).jpg' and 'C:\Users\DELL\Desktop\PalmVein\DataBase\Train\user 2\IMG_005 (5).jpg'
Shweta Naiskar
Shweta Naiskar 2017 年 4 月 3 日
i am attaching my 2 images here

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2017 年 4 月 1 日

コメント済み:

2017 年 4 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by