How can I calculate directional vector of a line connecting two points?
55 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
The two points are pixel position of an image
0 Commenti
Risposte (1)
goerk
il 19 Mag 2016
Startpoint = [1 2];
Endpoint = [3 3];
direction = Endpoint - Startpoint;
direction_scaled = direction/norm(direction); % vector with length 1
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Filtering and Enhancement 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!