Question: Problem 3 ( in matlab ) Complete the following task: Problem: Write a function named DeleteRegion that takes an input image and regenrates output images

Problem 3(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:
%|= input image
OUTPUTS:
For each region calculate: sum of (Area * Pixel intensities)
This will be a scalar value for each region, call this AreaPixelIntensity
lout contains all regions except the region with the third largest AreaPixelIntensity. (This region removed i.e.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_3_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!