Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Write a Matlab function MyBlur to replace all 16 pixels in each non-overlapping 44 block of any input image with their average intensity value.

5. Write a Matlab function MyBlur to replace all 16 pixels in each non-overlapping 44 block of any input image with their average intensity value. The prototype of MyBlur function is defined as follows:

function [BI] = MyBlur(I); where I is the original image and BI is the blurred image, where I can be either one 3-channel RGB color image or one single-channel grayscale image.

See mean function in Matlab.

Call this function in your main script to blur the color image A and get the blurred image to variable A2.

Call this function in your main script to blur the grayscale image B and get the blurred image to variable B2.

Display images A, B, A2 and B2 from left to right and top to bottom with the appropriate titles on figure 5.

NOTE: USING LOOPS

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

6. What is process reengineering? Why is it relevant to training?

Answered: 1 week ago