How can I calculate directional vector of a line connecting two points?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The two points are pixel position of an image
0 commentaires
Réponses (1)
goerk
le 19 Mai 2016
Startpoint = [1 2];
Endpoint = [3 3];
direction = Endpoint - Startpoint;
direction_scaled = direction/norm(direction); % vector with length 1
0 commentaires
Voir également
Catégories
En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!