How to draw a curved rectangle on a matrix with given two points?
3 ビュー (過去 30 日間)
古いコメントを表示
How to draw a curved rectangle matrix with given two points?
Assume, two points given:
a = [1,0.5];
b = [1,3.5];
And the created curved rectangle should be like this:
But the point is, all I finally want, is an image matrix return, not just to plot this figure using rectangle(); on screen.
Thanks, guys~
ps: in a binary scale.
0 件のコメント
回答 (1 件)
Joachim Schlosser
2016 年 3 月 31 日
If you want an image matrix, I still suggest using rectangle() to first draw, then exporting the figure to bitmap for getting the image matrix.
2 件のコメント
Joachim Schlosser
2016 年 4 月 1 日
insertShape cannot directly draw rounded rectangles. You may first want to try the above solution using
set(0,'DefaultFigureVisible','off');
to disable the display of the figure and thus drastically increase speed.
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!