Boundary detection using Machine/Deep learning

I have the following x and y points that make a shape, however the points are not in order and when using a line plot all the lines intersect and move randomly. Is there a way to use machine/deep learning to order the points so that the shapes are accurately drawn.

8 件のコメント

Ahmed Abdulla
Ahmed Abdulla 2022 年 6 月 9 日
This is how the points are ordered when i use a line plot
Simon Chan
Simon Chan 2022 年 6 月 9 日
Did you try function boundary and polyshape?
KSSV
KSSV 2022 年 6 月 9 日
With some tweaking in the code given here: https://in.mathworks.com/matlabcentral/answers/1725865-order-points-for-plotting?s_tid=prof_contriblnk you can achieve what you want.
Ahmed Abdulla
Ahmed Abdulla 2022 年 6 月 9 日
@Simon Chan Yes i tried both but the results are never exact and not all points get used :(
Ahmed Abdulla
Ahmed Abdulla 2022 年 6 月 9 日
@KSSV I have tried tweaking the codes, however depending on which random point we start in the code have minor failures and doesnt generalise well to all shapes :(
KSSV
KSSV 2022 年 6 月 9 日
I have multiple questions on this contest.
  1. Where and how are you generating these figures/ points/ data?
  2. Can't you save the points in order, while generating?
  3. How many shapes are there?
  4. For what shapes, the code fails (minor failure)?
  5. For how many shapes the code worked?
Ahmed Abdulla
Ahmed Abdulla 2022 年 6 月 9 日
  1. The points are generated from an STL mesh where the points are imported into MATLAB
  2. I have looked into this but unfortunately that wasnt possible
  3. I would like the code to work for any shape given to it
  4. Where the closest point interms of distance isnt the logical position to transition to
KSSV
KSSV 2022 年 6 月 9 日
編集済み: KSSV 2022 年 6 月 9 日
Attach your stl file.
You have not answered how and where this stl file is generated? Point 4 is not clear to me.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品

リリース

R2021b

質問済み:

2022 年 6 月 9 日

編集済み:

2022 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by