Programming/MATLAB

[MATLAB] Free Hand ROI

BadaGreen_Kim 2018. 2. 27. 18:26

 


 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
clc
= imread('peppers.png');
figure, 
imshow(A);
hROI = imfreehand(gca); 
Position = getPosition(hROI);
BW = createMask(hROI);
figure;
subplot(1,2,1)
imshow(A);
subplot(1,2,2);
imshow(BW);
  ※ imshow(BW,'Parent',handles.axes1);
 
cs
  ※ imshow(BW,'Parent',handles.axes1);
 

 

    - GUI AXES에 이미지를 넣을경우 
  • StackoverFlow
     
 
 

 

=