Programming/MATLAB

[MATLAB] Imfreehand Roi Image

BadaGreen_Kim 2019. 3. 12. 09:25



imfreehand를 이용하여 ROI 영역만 자르기.






.




  1. = rgb2gray(imread('nYNKB.jpg'));
  2.  
  3. imshow(I);
  4.  
  5. = imfreehand;
  6.  
  7. = ~h.createMask();
  8.  
  9. I(M) = 0;
  10.  
  11. imshow(I);