Write a method blur that makes an image look blurry using the following specific algorithm. Set each

Question:

Write a method blur that makes an image look “blurry” using the following specific algorithm. Set each pixel to be the average of itself and the 8 pixels around it. That is, for the pixel at position (x, y), set its RGB value to be the average of the RGB values at positions (x − 1, y − 1) through (x + 1, y + 1) Be careful not to go out of bounds near the edge of the image; if a pixel lies along the edge of the image, average whatever neighbors it does have.

File View Help Eile View Help Hello, world Hella, warld

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: