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

Answers (1)

Image Analyst
Image Analyst on 1 Apr 2017
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 Comments

@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.
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()?
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
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'

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 1 Apr 2017

Commented:

on 3 Apr 2017

Community Treasure Hunt

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

Start Hunting!