Question: this question Use the FDR to design and write a function called bpFilter. The function takes an image as input parameter and converts each pived
Use the FDR to design and write a function called "bpFilter. The function takes an image as input parameter and converts each pived as follows. green is changed to 15 plus its original value but will not exceed 255 leg a green value of 250 vicuild change to 255 not 265) red is changed to 155 its original value but will riot exceed 255 leo, a red value of 200 would change to 255 pot310). blue is changed 100,5 times the origins green value Now, use the FDR to design and write a test function called "test_bpFilter that tests bpFilier as per the approach used in the project, Finally write a script to test bpFilter two ways (1) using your best function and 23 using an actual image Proper indentation, syntax, type annotations and comments are required for full marks. Al the code you write will be in one file, in the order listed above You may assume that the usual test images.impl.py, and unit_lesting.py are in the same folder as the file that you are writing. Use the FDR to design and write a function called "bpFilter. The function takes an image as input parameter and converts each pived as follows. green is changed to 15 plus its original value but will not exceed 255 leg a green value of 250 vicuild change to 255 not 265) red is changed to 155 its original value but will riot exceed 255 leo, a red value of 200 would change to 255 pot310). blue is changed 100,5 times the origins green value Now, use the FDR to design and write a test function called "test_bpFilter that tests bpFilier as per the approach used in the project, Finally write a script to test bpFilter two ways (1) using your best function and 23 using an actual image Proper indentation, syntax, type annotations and comments are required for full marks. Al the code you write will be in one file, in the order listed above You may assume that the usual test images.impl.py, and unit_lesting.py are in the same folder as the file that you are writing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
