Your job is to write a basic blurring algorithm for a video driver. The algorithm will do the following: it will go through all pixels on the screen and for each pixel, compute the average intensity value (in red, green and blue separately) of the pixel and its 8 neighbors. (At the edges of the screen, there are fewer neighbors for each pixel.)
Let's say the number of pixels on the screen is n. Then what is the order of the number of arithmetic operations (additions and divisions) required?
The number is order of n2 .
The number is order of n4 .
The number is order of n3.
The number is order of n.
Recently Asked Questions
- Should our present gets to dictate what is morally correct -- and if it does then why do we get to make that judgement? And why do we make different
- I answer like this but it was not right can any one explains how you do it
- COMM280 assignment Think about your own interpersonal relationships and identify a scenario that you believe is a common interpersonal communication ethics