Guest User

Untitled

a guest
Nov 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. originalIM_River = imread('fig_lista4_2.bmp');
  2. figure,title('Original image'),imshow(originalIM_River)
  3.  
  4. imRGB_River = cat(3, originalIM_River, originalIM_River, originalIM_River);
  5. [nLine, nColumn] = size(imRGB_River);
  6.  
  7. for i = 1 : nLine
  8. for j = 1 : nColumn
  9. if imRGB_River(i,j) >= 0 && imRGB_River(i,j) <= 48
  10. imRGB_River(i,j,:) = [255,255,0]; % (255,255,0) is yellow
  11. end
  12. end
  13. end
  14.  
  15. figure, title('New imagem - River painted with yellow'),imshow(imRGB_River)
Add Comment
Please, Sign In to add comment