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 Exchange에서 Convert 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