Question: python only!!!!!! Use the FDR to design and write a function called blFilter. The function takes an image as input parameter and converts each pixel

python only!!!!!! python only!!!!!! Use the FDR to design and write a function called

Use the FDR to design and write a function called "blFilter". The function takes an image as input parameter and converts each pixel as follows: green is changed to 1.5 times its original value but will not exceed 255 (e.g. a green value of 200 would change to 255, not 300). blue is changed to 155 minus its original value but will not be below 0 (e.g. a blue value of 160 would change to O, not -5). red is changed to 0.5 times its original value Now, use the FDR to design and write a test function called "test_blFilter", that tests blFilter as per the approach used in the project. Finally write a script to test blFilter two ways: (1) using your test function and (2) using an actual image. Proper indentation, syntax, type annotations, and comments are required for full marks. All the code you write will be in one file, in the order listed above. You may assume that the usual test images, Cimpl.py, and unit_testing.py are in the same folder as the file that you are writing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!