How to calculate the angle between two lines from the same origin?

조회 수: 25 (최근 30일)
Fego Etese
Fego Etese 2020년 6월 9일
편집: Fego Etese 2020년 6월 9일
Please I need help on this, I have extracted severla minutia points from this fingerprint image and I have been able to calculate the angle of each minutia according to the ridge direction, which i have dipslayed in green small arrows, and i want to take one of the minutia as a reference point and calculate the distance and angle each other minutia forms with the reference minutia, that is the angles in orange color, please help me on this. thanks
  댓글 수: 8
Adam Danz
Adam Danz 2020년 6월 9일
Yes, that's also possible. Good idea.
Fego Etese
Fego Etese 2020년 6월 9일
편집: Fego Etese 2020년 6월 9일
Thanks Adam, please I also want to ask, I used gradient direction estimation woth block processing to get the angle of the reference minutia, from a gray scale image, that is to get the angle of the ridges, does this method calculate the angle to the x-axis?
Also i want to find the angle of the white valley in a bifurcation, that is the white space in between the two ridges of a bifurcation, please how can i go about it? I saw on that paper that i need to calculate the angle of the bifurcation on the negative image of the fingeprint but i don't know how it'll work since I calculated it on a gray image not a binary image

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2020년 6월 9일
O = [0. 0.] ; % origin
% Two points
A = rand(1,2) ;
B = rand(1,2) ;
u = O-A ;
v = O-B ;
CosTheta = (dot(u,v) / (norm(u)*norm(v)));
  댓글 수: 8
Fego Etese
Fego Etese 2020년 6월 9일
So i should like draw a line for the origin minutiae and use an arbitrary maginitude and the coordinates at the end of the line?
KSSV
KSSV 2020년 6월 9일
It need not to be origin....any three non colliniear points.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

David Hill
David Hill 2020년 6월 9일
Seems like just a math problem. If you have two vectors A and B, then angle between them is:
angle = acos(dot(A,B)/norm(A)/norm(B));
  댓글 수: 4
Fego Etese
Fego Etese 2020년 6월 9일
편집: Fego Etese 2020년 6월 9일
Please look at the example i gave on KSSV's answer, it highlights what I'm facing better, the minutiae O has no magnitude but has an angle from the gradient calculation and i want to find the angle minutia A is making with miunutiae O
David Hill
David Hill 2020년 6월 9일
You need four pixel points, to generate the three vectors from the origin. It does not matter what the magnitudes are since they get divided out to compute the angle.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by