How can I obtain an array of the xy coordinates for a curve in a picture?

4 ビュー (過去 30 日間)
Grigorios Chatziandreou
Grigorios Chatziandreou 2022 年 4 月 26 日
回答済み: Precise Simulation 2022 年 8 月 30 日
hello, I have a picture and would like to extract information. Specifically, I want to use the Finite Element Analysis Tool (app extension) to model flow around a car. On my ipad, I have drawn a simple 2D side layout (a closed curve) and would like to gain somehow the coordinates for each point (with a small spacestep). Could you please help?

回答 (2 件)

Jason Shrand
Jason Shrand 2022 年 4 月 26 日
If you have a picture, you can load it as a [width X height X 3] RGB image that you can then manipulate, using the "imread" function.
From there you could use the Computer Vision Toolbox to do feature detection. Specifically, I think imcontour might be useful.

Precise Simulation
Precise Simulation 2022 年 8 月 30 日
When using FEATool version 1.15.1 and later your can import a bitmap image (jpeg, bmp, or png) and convert it to a two dimensional geometry (which you later can mesh and perform CFD simulations on). For example see the link below:
FEATool bitmap image geometry import

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by