![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/923164/image.png)
Binary mask/contour to editable roi or smth similar?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
After my automatic segmentation I'd like to display some editable contour over the original image, so that any user could edit segmented mask or contour if there will be any mistakes.
I attach below an example of segmented mask.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171912/image.jpeg)
0 Kommentare
Antworten (1)
hamed Aghapanah
am 11 Mär. 2022
you can down load thibelow s path for get your function :
then :
addpath('mask2poly')
manual_mask=1;
if manual_mask==1
roi = images.roi.AssistedFreehand;
draw(roi); roi2 = images.roi.AssistedFreehand;
draw(roi2); mask1 = createMask(roi);
mask2 = createMask(roi2); c1 =mask2poly(mask1);
hold on ; plot(c1(:,1),c1(:,2),'r.')
c2 =mask2poly(mask2); hold on ; plot(c2(:,1),c2(:,2),'g.')
end
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/923164/image.png)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!