Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i=1:size(I,1)
- for j=1:size(I,2)
- if(I(i,j)>150) %150 moze nie byc najlepsze, wybierz lepsza wartosc. Przy 1, zachowuje sie tak samo jak przy zrobieniu ~
- I(i,j)=1; %Mozesz zrobic nowy obraz zeby nie zapisywalo tego w obrazie I(i,j) tylko np I_nowa_negacja(i,J)
- else
- I(i,j)=254;
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement