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

Antworten (1)

Image Analyst
Image Analyst am 1 Apr. 2017

0 Stimmen

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 Kommentare

Shweta Naiskar
Shweta Naiskar am 1 Apr. 2017
@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 am 1 Apr. 2017
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 am 2 Apr. 2017
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 am 2 Apr. 2017
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 am 3 Apr. 2017
i am attaching my 2 images here

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 1 Apr. 2017

Kommentiert:

am 3 Apr. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by