Question: Box Blur with multithreading ( 3 0 % - 1 0 0 marks ) Your program will decode a PNG file into an array and
Box Blur with multithreading marks
Your program will decode a PNG file into an array and apply the box blur filter. Blurring an image
reduces noise by taking the average RGB values around a specific pixel and setting its RGB to the
mean values youve just calculated. This smoothens the colour across a matrix of pixels. For this
assessment, you will use a x matrix. For example, if you have a x image such as the following be
aware that the coordinate values will depend on how you format your D array:
The shaded region above represents the pixel we want to blur, in this case, we are focusing on pixel
xyCentre of the matrix to apply the blur for this pixel, you would sum all the Red values from
the surrounding coordinates including total of R values and find the average divide by This
is now the new Red value for coordinate You must then repeat this for Green and Blue values.
This must be repeated throughout the image. If you are working on a pixel which is not fully
surrounded by pixels pixels you must take the average of however many neighbouring pixels
there are.
NOTE this program should work with any amount of threads.
Reading in an image file into a single or D array marks
Applying Box filter on image marks
Using multithreading appropriately to apply Box filter marks
Using dynamic memory malloc marks
Outputting the correct image with Box Blur applied marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
