Question

3.9 Assuming continuous values, show by example that it is possible to have a case in which the transformation function given
. Write a MatLab program to perform spatial filtcring of an imags (see Sacticn 3.635) reganding eplementation) You can fix th
3.9 Assuming continuous values, show by example that it is possible to have a case in which the transformation function given in Eq. (3.3-4) satisfies conditions (a) and (b) in Section 3.3.1, but its inverse may fail to be single valued.
. Write a MatLab program to perform spatial filtcring of an imags (see Sacticn 3.635) reganding eplementation) You can fix the size of the spatial mask a 3 x3 but the ceefliacicnts need to be variables that can be input into your program. This peogram shouild be gemeric Wrie your ow code to perform the mathematical steps involved in the peocodane of ring 2 Implement your code using the masks in figure 3.34 3.32 Implement the two masks in figure 3.41. see below Mask for part 4. Implement high boost filering using the Mask i. Figure 342 with A-e 1, 2.see the fgre bekow Masis for part 4 5. Corment on each simulation and Ceespare the results of 2. 3, and 4 your simulations Shown below for your reference and can be found on http:www.imagcprocessingpace.cDP- 3Edipie book imapes doanloads htm a Show the original image and the modified ene for each simulanion Your code SHOULD be clear and self explanatory. Write your analysis of each silai Yoar HW should be submitted in technical report format.Thait is a clear staicment of the problem, selation, analysis and discussion of the results, Make sure to trefienence any material you have used outside the textbook and or MATLAB dequmentation Fig0121 (a)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

close all,
clear all,
clc,

ProjectPath = pwd;
ROW = 128; COL=128;

ImagePath = strcat(ProjectPath,'\Leena.jpg');
Orig = imread(ImagePath);
Gray = rgb2gray(Orig);
subplot(2,3,1); imshow(Gray); title('Original Image');

Mask = [-1,-1,-1;-1,0,-1;-1,-1,-1];
Mask_1_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,2); imshow(Mask_1_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

Mask = [0,-1,0;-1,5,-1;0,-1,0];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

figure,
A=0;
Mask = [0,-1,0;-1,A-4,-1;0,-1,0];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

Mask = [-1,-1,-1;-1,A-4,-1;-1,-1,-1];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

figure,
A=1;
Mask = [0,-1,0;-1,A-4,-1;0,-1,0];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

Mask = [-1,-1,-1;-1,A-4,-1;-1,-1,-1];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

figure,
A=2;
Mask = [0,-1,0;-1,A-4,-1;0,-1,0];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

Mask = [-1,-1,-1;-1,A-4,-1;-1,-1,-1];
Mask_2_Filter_Image = imfilter(Gray,Mask);
subplot(2,3,3); imshow(Mask_2_Filter_Image); str = strcat('Filter Image Mask',num2str(Mask)); title(str);

Add a comment
Know the answer?
Add Answer to:
3.9 Assuming continuous values, show by example that it is possible to have a case in which the transformation f...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • have to implement a matalb code using the figure0121(a) & have to show the results of modified one for each simulat...

    have to implement a matalb code using the figure0121(a) & have to show the results of modified one for each simulation & even write analysis for each simulation. B. Computer Assignment: 1. Write a MatLab program to perform spatial filtering of an image (see Section 3.6 (3.5) regarding implementation). You can fix the size of the spatial mask at 3 x3, but the coefficients need to be variables that can be input into your program. This program should be generic....

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT