How to create a white rotated box inside a black box
1 回表示 (過去 30 日間)
古いコメントを表示
How to create a white rotated box inside a black box as shown in image
0 件のコメント
採用された回答
Image Analyst
2019 年 4 月 29 日
Define the x,y coordinates of the corners, then use poly2mask().
binaryImage = poly2mask(x, y, rows, columns);
It's literally one line of code if you already have the coordinates and size of the entire image.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing and Computer Vision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!