Question: from Cimpl import * file = choose_file() original_image = load_image(file) for pixel in original_image: x, y, (r, g, b) = pixel print (x,y,:, r,g,b) red_image

from Cimpl import *

file = choose_file()

original_image = load_image(file)

for pixel in original_image:

x, y, (r, g, b) = pixel

print (x,y,":", r,g,b)

red_image = copy(original_image)

for pixel in original_image:

x, y, (r, g, b) = pixel

red = create_color( r,0,0)

set_color (red_image, x, y, red)

show( original_image)

show( red_image)

can you script a test function for this program,

background: its a filter and its supoosed to use cimpl and pillow and the image is supposed to change the image to a new image to add a red filter

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 Programming Questions!