Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I = imread ("faris.png");
- for i = 1:rows(I)
- for j = 1:columns(I)
- if I(i,j,1) == 220 && I(i,j,2) == 126 && I(i,j,3) == 212
- I(i,j,1) = 63;
- I(i,j,2) = 89;
- I(i,j,3) = 96;
- endif
- if I(i,j,1) == 194 && I(i,j,2) == 93 && I(i,j,3) == 151
- I(i,j,1) = 194;
- I(i,j,2) = 189;
- I(i,j,3) = 93;
- endif
- if I(i,j,1) == 117 && I(i,j,2) == 69 && I(i,j,3) == 134
- I(i,j,1) = 124;
- I(i,j,2) = 134;
- I(i,j,3) = 69;
- endif
- endfor
- endfor
- imshow(I);
- imwrite(I,"recolor.png");
Add Comment
Please, Sign In to add comment