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 CenterFile 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!

Translated by