Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1.State the definition of the problem and the purpose of the program in one sentence. 2.Use a comment line. 3. A screenshot of the program
1.State the definition of the problem and the purpose of the program in one sentence. 2.Use a comment line. 3. A screenshot of the program output is required. 4.It will be written in the Python programming language.
// You can use a sample picture.
-------------------------------------------------------------------
. Problem 1: Design a Python class named ImageFilt for processing a digital image. The class should contain: The data fields for filename, image array (im), height and width of the image. A constructor with the argument for filename. A method named load_im() that loads the image, sets height and width and returns true if the file exists; else returns false and prints a warning that says "Cannot find the image file. The method filter_im(f) that filters the image using a blur filter if t=0, or using a sharpening filter if f =1. The method plot_im() that plots the original and filtered images as subplots in a single figure window. Write a test program that prompts the user to enter the filename (i.e. lena.pgm) and displays the original image and its blurred and sharpened versions. Test your program for two different colored imagesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started