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!