Advertisement
Guest User

Untitled

a guest
May 27th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. for i=1:size(I,1)
  2. for j=1:size(I,2)
  3. if(I(i,j)>150) %150 moze nie byc najlepsze, wybierz lepsza wartosc. Przy 1, zachowuje sie tak samo jak przy zrobieniu ~
  4. I(i,j)=1; %Mozesz zrobic nowy obraz zeby nie zapisywalo tego w obrazie I(i,j) tylko np I_nowa_negacja(i,J)
  5. else
  6. I(i,j)=254;
  7. end
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement