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 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 ieset to background intensity
Note:
All ouput image are of datatype double
All output images are same size as input
Test this function as below:
I imread Ex
Pbpng;
Ioutstudent DeleteRegion I ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
