Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c language! this question is to take image and turn it into blur one. and this is the solution I need a nother way
using c language!
this question is to take image and turn it into blur one.
and this is the solution
I need a nother way to solve rather than this without using any C functions just solve it easy to understand with comments in the code please
Blur There are a number of ways to create the effect of blurring or softening an image. For this problem, we'll use the "box blur," which works by taking each pixel and, for each color value, giving it a new value by averaging the color values of neighboring pixels. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Consider the following grid of pixels, where we've numbered each pixel. The new value of each pixelwould be the average of the values of all of the pixels that are within 1 row and column of the original pixel (forming a 3x3 box). For example, each of the color values for pixel6 would be obtained by averaging the original color values of pixels 1, 2, 3, 5, 6, 7, 9, 10, and 11 (note that pixel6 itself is included in the average). Likewise, the color values for pixel 11 would be be obtained by averaging the color values of pixels 6, 7, 8, 10, 11, 12, 14, 15 and 16. Fora pixel along the edge or corner, like pixel 15, we would still look for all pixels within 1 row and column: in this case, pixels 10, 11, 12, 14, 15, and 16. the blur function: should take an image and turn it into a box-blurred version of the same image. The values of a pixel's rgbtRed, rgbtGreen, and rgbtBlue components are all integers, so be sure to round any floating-point numbers to the nearest integerwhen assigning them to a pixel value! 1/ Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE temp[height][width]; for (int row = 0; row height; row++) { for (int col = @; col = 0 && curkow = 0 && curColStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started