SHARE
TWEET

Untitled

a guest Feb 17th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top