How to find a concentric irregular polygon

조회 수: 2 (최근 30일)
Matteo Nicoletta
Matteo Nicoletta 2022년 3월 1일
답변: Image Analyst 2023년 9월 7일
Hi everyone,
How can I find a new set of points which compose a concentric polygon, inside the original one (in the picture), with a given distance from it?

답변 (1개)

Image Analyst
Image Analyst 2023년 9월 7일
I'd just find the centroid of the shape, then run around the perimeter finding the distance to the centroid. Then use normal trig functions to shorten that distance and get new (x,y) coordinates.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by