Problem using minboundquad function to create a minimum bounding quadrilateral for a given pointset
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Gowtham HariHara
am 18 Mai 2021
Beantwortet: Gowtham HariHara
am 26 Mai 2021
I had modified one line in the minboundquad.m function to remove the collinear edges in the pointset.
from
edges = convhull(x,y);
to
edges = convhull(x,y,'Simplify',true);
The main code is
load points2.txt
x = points2(:,1);
y = points2(:,2);
[qx,qy] = minboundquad(x,y)
Result I got is below.
There is some error I could not find out. Can someone help me solve this?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Shiva Kalyan Diwakaruni
am 26 Mai 2021
Hi,
I did not seem to find any error while reproducing and I got the below result after changing minboundquad.m
from
edges = convhull(x,y);
to
edges = convhull(x,y,'Simplify',true);
I got the Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
Can You explain what your error was?
2 Kommentare
Siehe auch
Kategorien
Mehr zu Dijkstra algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!