The direction vectors for neighbour pixels
1 view (last 30 days)
Show older comments
The 3 below neighbours of a pixel x(i,j) are x(i+1,j-1), x(i+1,j) and x(i+1,j+1). These neighbours can be accessed by (-1/sqrt(2), -1/sqrt(2)) ,(0,1) and (1/sqrt(2),-1/sqrt(2)) .
Can u tell me how to find the direction vectors corresponding to the 3 right side neighbours for a pixel x(i,j). The 3 neighbours are x(i-1,j+1), x(i,j+1) and x(i+1,j+1).
1 Comment
David Young
on 21 Nov 2014
Note that as you already have the answer for x(i+1, j+1), you only need to find out the other two.
Can you explain why you can't do the right neighbours when you can do the bottom ones? If it's homework, perhaps you like to make an attempt at your own answer and then ask if you are correct.
Answers (0)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!