任意の2次元座標デー​タから楕円フィッティ​ングをする方法

33 Ansichten (letzte 30 Tage)
kyuu
kyuu am 16 Jun. 2024
Beantwortet: Atsushi Ueno am 16 Jun. 2024
お疲れ様です。
早速ですが、添付した点群の2次元座標を1つの楕円に近似したいです。
どうぞ宜しくお願い致します。

Antworten (1)

Atsushi Ueno
Atsushi Ueno am 16 Jun. 2024
T = readtable("https://jp.mathworks.com/matlabcentral/answers/uploaded_files/1716431/1%E5%88%97%E7%9B%AE%E3%81%8C%EF%BD%98%E5%BA%A7%E6%A8%99%E3%80%812%E5%88%97%E7%9B%AE%E3%81%8C%EF%BD%99%E5%BA%A7%E6%A8%99%E3%81%A7%E3%81%99.txt");
websave("fit_ellipse.zip", "https://jp.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/3215/versions/1/download/zip");
unzip("fit_ellipse.zip");
fit_ellipse(T.Var1, T.Var2, axes) % fit_ellipse - finds the best fit to an ellipse for the given set of points.
ans = struct with fields:
a: 59.9916 b: 51.1777 phi: -0.3650 X0: 1.4093e+03 Y0: 815.7096 X0_in: 1.0253e+03 Y0_in: 1.2650e+03 long_axis: 119.9831 short_axis: 102.3555 status: ''
hold on;
scatter(T.Var1, T.Var2, 5);

Kategorien

Mehr zu Detection, Range and Doppler Estimation finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!