Exam4Training

For a pixel P with coordinates (x, y), P has four horizontal and vertical neighboring pixels, called a 4-neighborhood. Which of the following can correctly represent the coordinates of the 4-neighborhood?

For a pixel P with coordinates (x, y), P has four horizontal and vertical neighboring pixels, called a 4-neighborhood. Which of the following can correctly represent the coordinates of the 4-neighborhood?
A . (x-1, y), (x-1, y), (x, y-1), (x, y+1)
B . (x-1, y), (x+1, y), (x, y+1), (x, y+1)
C . (x-1, y), (x+1, y), (x, y-1), (x, y-1)
D . (x-1, y), (x+1, y), (x, y-1), (x, y+1)

Answer: D

Exit mobile version