Guest User

Untitled

a guest
Feb 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ima=input(:,250:400);
  2. window_size = 6;
  3. wsz = window_size-1;
  4. mp = round(window_size/2);
  5. img = ima;
  6. x1 = zeros(size(img));
  7. y1 = zeros(size(img));
  8.  
  9. img1 = img;
  10. for k1= 1:size(img,1)-wsz
  11. for k2= 1:size(img,2)-wsz
  12.  
  13. if ima(k1,k2)~=0
  14. thresh=img(k1:k1+wsz,k2:k2+wsz);
  15. end
  16. end
  17.  
  18. figure,imshow(thresh)
Add Comment
Please, Sign In to add comment