Change the Line width in imfreehand?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aravin
am 26 Apr. 2017
Beantwortet: Tim Jackman
am 27 Sep. 2018
Dear all,
I am interested to increase the line width in imfreehand and also it should not be poly. To avoid poly I do this.
test = imfreehand('Closed',0);
which works fine. Now How can I increase the line width. I am using MATLAB 2015.
0 Kommentare
Akzeptierte Antwort
KSSV
am 26 Apr. 2017
test = imfreehand('Closed',0);
pos = test.getPosition();
plot(pos(:,1),pos(:,2),'linewidth',5) ;
0 Kommentare
Weitere Antworten (2)
Tim Jackman
am 27 Sep. 2018
The new freehand ROI drawfreehand has a LineWidth property:
https://www.mathworks.com/help/images/ref/drawfreehand.html
As an example:
imshow('peppers.png')
h = drawfreehand('LineWidth',10);
0 Kommentare
Image Analyst
am 26 Apr. 2017
I don't see anyway to control the linewidth "live" as you draw the shape. The only way to show a different thickness line is to plot it, after you're all done drawing, with the plot() function and specify the 'LineWidth' property as KSSV showed you.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks 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!