SHARE
TWEET

Untitled

a guest Aug 22nd, 2013 84 Never
  1. I = input('Enter the name of the image','s');
  2. img=imread(I);
  3. imshow(img);
  4. roi = imfreehand;
  5. img2 = img;
  6. img3 = zeros(size(img));
  7. img2(roi.createMask) = 100;
  8. img3(roi.createMask) = 100;
  9.  
  10. roi2 = imfreehand;
  11. img4 = img3;
  12. img5 = zeros(size(img));
  13. img4(roi2.createMask) = 200;
  14. img5(roi.createMask) = 200;
  15.  
  16. imshow(img5);
RAW Paste Data
Top