Question
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
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