Question: can you fix my code it's wrong import matplotlib.pyplot as pit import numpy as np | colored=input(Enter name of the input file: ') foriginal file

import matplotlib.pyplot as pit import numpy as np | colored=input("Enter name of the input file: ') foriginal file redFree=input('Enter name of the output file: ') foutput file img1=plt. imread (colored) img2=img1.copy) img2[:,:,0)=0 the channel [1,01 refers to red I the 4 lines below have to be removed as specified by the question but you can uncomment th #plt. imshow (img1.) plt.figure() #plt. imshow (img2) plt.show() pit. imsave (redFree, img2) meer www 15. Due Date: 3 March Reading: Think CS: Section 8.10 & Datacamp Nump Tutorial & Write a program that asks the user for a name of an image.pre file and the name of an output file. Your program should create a new image that has only the green and blue channels of the original image that is, no red channel To test your program you can download Bridge. A sample run of your program should look like Enter name of the input filer estridge.png Enter of the output file more.png Sample input and resulting output files IMPORTANT: before submitting your program for grading, remove the commands that show the image (ie the ones that pop up the graphics window with the image. The program is gr on a server on the cloud and does not have a graphics window, so, the plt.show() and plttonew) commands will give an error. Instead, the files your program products are compared prel by-pixel to the answer to check for correctness
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
