Question: In Matlab Complete the following task: Problem: Write a function named DeleteRegion that takes an input image and regenrates output images as given below. Your

In Matlab Complete the following task:
Problem: Write a function named DeleteRegion that takes an input image and regenrates output images as given below.
Your function will be tested against two other images that are not visible to you, so hard coded values for structuring elements will not work.
%%
INPUTS:
% I = input image
OUTPUTS:
Iout_student contains all regions except the third largest region removed (set to background -0 intensity)
Note:
1) All ouput image are of datatype double
2) All output images are same size as input
%Test this function as below:
I = imread('Ex_1_Pb_2_1.png');
Iout_student = DeleteRegion(I);

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!