![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/313121/image.png)
How to calculate the angle between two lines from the same origin?
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/313082/image.jpeg)
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 Commenti
Risposta accettata
KSSV
il 9 Giu 2020
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 Commenti
Più risposte (1)
David Hill
il 9 Giu 2020
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 Commenti
David Hill
il 9 Giu 2020
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.
Vedere anche
Categorie
Scopri di più su Denoising and Compression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!