SHARE
TWEET

Untitled

a guest Aug 22nd, 2013 39 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. img3(roi.createMask) = 1;
  8. roi2 = imfreehand;
  9. img3(roi2.createMask) = 2;
  10. imshow(img3);
RAW Paste Data
Top