Fill area between x-y data

Hi everyone!
I have a data as shown in the figure. I want to fill/find the polygon area with maximum probability (not necessarily circular, I need to find the shape). Can anyone please help me?
Thank you!

2 Kommentare

Matt J
Matt J am 11 Apr. 2023
You'll need to define "maximum probability" for us. Are you sure you don't simply want to take the convex hull?
Walter Roberson
Walter Roberson am 11 Apr. 2023
Given the coordinates of any particular polygon, how would you calculate the "probability" of it?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Joe Vinciguerra
Joe Vinciguerra am 11 Apr. 2023
Bearbeitet: Joe Vinciguerra am 11 Apr. 2023

1 Stimme

xy = randn(100, 2);
shp = alphaShape(xy, inf);
area = shp.area;
facets = shp.boundaryFacets;
plot(shp, "LineStyle","none", "Marker","none")
hold on;
scatter(xy(:,1), xy(:,2))
grid on;
Image Analyst
Image Analyst am 11 Apr. 2023

0 Stimmen

The polygon with the maximum density would be one that starts at one point and then snakes around until it has "grabbed" every point. The width of the snake would be infinitesimally small.

Kategorien

Produkte

Version

R2022b

Gefragt:

am 11 Apr. 2023

Beantwortet:

am 11 Apr. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by