szymcio10

Filtry kombinowane.

May 8th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.30 KB | None | 0 0
  1. close all;
  2. clear all;
  3.  
  4. load('maskiPP.mat')
  5. A1 = imread('jet.bmp')
  6.  
  7. A1s1 = conv2(A1,S1,'same')
  8. A1s2 = conv2(A1,S2,'same')
  9.  
  10. A1s1k = uint8(sqrt(A1s1.^2+A1s2.^2));
  11. A1s2k = uint8(abs(A1s1)+abs(A1s2));
  12.  
  13. figure(1)
  14. subplot(1,3,1)
  15. imshow(A1)
  16.  
  17. subplot(1,3,2)
  18. imshow(A1s1)
  19.  
  20. subplot(1,3,3)
  21. imshow(A1s1k)
Advertisement
Add Comment
Please, Sign In to add comment