Question: Practice 2@ Image Filter 17* 2 * This filter places a black vertical line * that occurs every other x-value pixel 4 * Parameter image

Practice 2@ Image Filter 17* 2 * This filter places a black vertical line * that occurs every other x-value pixel 4 * Parameter image to run through filter 5 6 function customFilterl(image) 8 14 16 9 10 // Implement filter #1 here 11 } 12 13 - *This filter places a black horizontal line 15 * that occurs every other y-value pixel * Parameter - image to run through filter 17 */ 18 function customFilter2(image) 19 20 // Implement filter #2 here 21 3 22 23 INSERT DESCRIPTIVE COMMENT HERE! 25 26 function customFilter3(image) 27 - 28 // Implement filter #3 here 29 3 30 31 32 This function converts a given pixel to be black Parameter: pixel the pixel to be converted 34 Return: a black pixel 24 33 angtiment/38351675/ y Section Practice Exercise : Image Filter 10 points Program Result Run Doma Stop In this programming exercise you will be implementing three different image filters that utilize a single pixel changing function. This function, named convertToBlack" accepts a pixel as a parameter and converts it to be black FILTER #1 Place black vertical bars on every other place along the axis. This filter must utilize the "convertToBlack function FILTER 12 Place black horizontal bars on every other pibet along they xls. This fiter must utilize the converto Black" function FUTER 33. Create a custom fiter of your choicet This timer must utilize the converto Black function HINT It seems not every pbl should be converted to black. How can we make it so the program only converts a pool if a certain situation occurs? Practice 2@ Image Filter 17* 2 * This filter places a black vertical line * that occurs every other x-value pixel 4 * Parameter image to run through filter 5 6 function customFilterl(image) 8 14 16 9 10 // Implement filter #1 here 11 } 12 13 - *This filter places a black horizontal line 15 * that occurs every other y-value pixel * Parameter - image to run through filter 17 */ 18 function customFilter2(image) 19 20 // Implement filter #2 here 21 3 22 23 INSERT DESCRIPTIVE COMMENT HERE! 25 26 function customFilter3(image) 27 - 28 // Implement filter #3 here 29 3 30 31 32 This function converts a given pixel to be black Parameter: pixel the pixel to be converted 34 Return: a black pixel 24 33 angtiment/38351675/ y Section Practice Exercise : Image Filter 10 points Program Result Run Doma Stop In this programming exercise you will be implementing three different image filters that utilize a single pixel changing function. This function, named convertToBlack" accepts a pixel as a parameter and converts it to be black FILTER #1 Place black vertical bars on every other place along the axis. This filter must utilize the "convertToBlack function FILTER 12 Place black horizontal bars on every other pibet along they xls. This fiter must utilize the converto Black" function FUTER 33. Create a custom fiter of your choicet This timer must utilize the converto Black function HINT It seems not every pbl should be converted to black. How can we make it so the program only converts a pool if a certain situation occurs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
