Question: Write the function called custom_blue_filter that takes in 4 input parameters: img - an image represented as a 2D list top_left - top left corner

Write the function called custom_blue_filter that takes in 4 input parameters: img - an image represented as a 2D list top_left - top left corner of the region where the blue filter needs to be applied height - height of the region where the filter needs to be applied width - width of the region where the filter needs to be applied Your function should return the modified img 2D list Blue Filter - Similar to the red filter explained in this lesson, in a blue filter you need to retain the making the red and green components to be 0. Sample Input 1: [[(80, 90, 40), (40, 50, 32)], [(23, 44, 56), (67, 231, 23)]] (1,1) 1 1 Sample Output 1: [[(80, 90, 40), (40, 50, 32)], [(23, 44, 56), (0, 0, 23)]] Sample Input 2: [[(80, 90, 40), (40, 50, 32), (231, 111, 110)], [(23, 44, 56), (67, 2 190, 120), (140, 150, 231), (231, 111, 110)]] (0,0) 2 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
