Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.47 KB | None | 0 0
  1. obr=imread('C:\Users\VPC\Desktop\WKiRO\cw1\obrazy testowe\Filtracja\LENABC.BMP');
  2.  
  3. e_sob=edge(obr,'sobel',0.06);
  4. e_prew=edge(obr,'prewitt',0.06);
  5. e_canny=edge(obr,'canny',[0.08 0.2],1);
  6. e_zeros=edge(obr,'zerocross');
  7. e_log=edge(obr,'log',0.04,1);
  8.  
  9. %plot
  10. subplot(2,3,1);
  11. subimage(obr);
  12.  
  13. subplot(2,3,2);
  14. subimage(e_sob);
  15.  
  16. subplot(2,3,3);
  17. subimage(e_prew);
  18.  
  19. subplot(2,3,4);
  20. subimage(e_canny);
  21.  
  22. subplot(2,3,5);
  23. subimage(e_zeros);
  24.  
  25. subplot(2,3,6);
  26. subimage(e_log);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement