Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do i upload an image so that this code will work. When i code to upload an image it returns the normal image and

image text in transcribedimage text in transcribed

how do i upload an image so that this code will work. When i code to upload an image it returns the normal image and not the blue filtered one with the code I have created above ?

Thanks in advance

Image filtering is the process of changing or extracting one aspect of the digital image representation to make the image look different. For instance, a red-channel filter uses only the red channel of an image, clearing the blue and green channel. In contrast, a green-channel filter uses only the green channel of an image, clearing the red and blue channels. The effect of these two filters is shown in Figure 1. FIGURE 1. ORIGINAL IMAGE. GREEN AND RED CHANNEL FILTERS. In this Milestone, your team will write four of the simplest image filters, to be called respectively: red_channel green_channel blue_channel combine Each filter has an image file as a parameter and returns an altered version of that image file (see Figure 2). The red/green/blue channel filters return an image that contains only the red/green/blue portions of the input image (e.g. p2_original.png). The combine filter (shown on the right-hand side of Figure 2) reverses this process. The combine() filter accepts three image files (red/blue/green_channel.png), and returns a single image file that is a combination of those three files. If you have coded everything correctly, 5 from Cimpl import def blue_channel(image: Image) -> Image: new_image = copy(image) for pixel in image: X, Y, (r, g, b) - pixel blue_filter - create_color(0,0,b) set_color (new_image, x, y, blue_filter) return new_image

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions