Computer Science, asked by barnali12, 1 year ago

Suppose we have a 5 x 5 pixel image. The pixels in the top row are numbered 0 through 4 left to right, the ones in the second row from the top are numbered 5 through 9 left to right, and so on. Suppose this image contains a '+' symbol at the center, and the bars in the '+' are 1 pixel wide and 3 pixels long, with the central pixel appearing in both the horizontal and vertical bars. The pixels corresponding to the '+' have value 1 and others have value 0.

1>How many pixels have value 1?
2>What is the value of the pixel numbered 6?
3>What are the numbers of these pixels having value 1? Note- In case of multiple answers, please separate those with comma without any space.

Answers

Answered by shashikantghogarekar
10

Answer:

Suppose we have a 5 x 5 pixel image. The pixels in the top row are numbered 0 through 4 left to right, the ones in the second row from the top are numbered 5 through 9 left to right, and so on. Suppose this image contains a '+' symbol at the center, and the bars in the '+' are 1 pixel wide and 3 pixels long, with the central pixel appearing in both the horizontal and vertical bars. The pixels corresponding to the '+' have value 1 and others have value 0.

1>How many pixels have value 1?

2>What is the value of the pixel numbered 6?

3>What are the numbers of these pixels having value 1? Note- In case of multiple answers, please separate those with comma without any space=25

Similar questions