How i can determine the direction of the pixel??
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using lucas & kanade method to calculate the optical flow, I need that to classify the pixels into right,left,up and down.
0 commentaires
Réponses (1)
Walter Roberson
le 25 Oct 2015
Look at whether abs(delta_x) > abs(delta_y) to determine whether you are dealing with left/right or with up/down . Then within each group, look at the sign of the controlling change to determine which of the two directions it is.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!