How i can determine the direction of the pixel??
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2015-10-25
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Optics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!