How to create a white rotated box inside a black box

1 回表示 (過去 30 日間)
Elysi Cochin
Elysi Cochin 2019 年 4 月 29 日
編集済み: Elysi Cochin 2019 年 4 月 29 日
How to create a white rotated box inside a black box as shown in image

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by