How can i write a MATLAB script for surface profile analysis of different geometries(such hemisphere, plane, sphere, asphere...) including vertex search, data processing,fit?

39 ビュー (過去 30 日間)
Jes
Jes 2025 年 9 月 2 日 6:43
編集済み: Matt J 2025 年 9 月 2 日 12:35
I am a beginner in MATLAB: The input in my case is the measurement data from a sensor doing spiral scanning. So I have 3D point data (x, y, z) of the surface for different geometries like hemisphere, plane, sphere, and cylinder. The script should preprocess this data (filtering, centering, vertex search), fit the right model (sphere, plane, cylinder, or freeform), and then output the fitted parameters along with residuals. The outcomes I want are both numerical results (fit parameters and errors) and visualizations in 2D cross-sections and 3D surface plots.
  5 件のコメント
Chuguang Pan
Chuguang Pan 2025 年 9 月 2 日 8:48
@Jes. There are some functions for fitting different shapes in Computer Vision Toolbox, such as pcfitplane for plane, pcfitsphere for sphere, pcfitcylinder for cylinder. If you want to use one script to process all shapes, you need to write your own script based on based on existing MATLAB functions according to your requirements.
Jes
Jes 2025 年 9 月 2 日 10:14
編集済み: Jes 2025 年 9 月 2 日 10:17
So computer vision toolbox and matlab are different? I cannot do the script in MATLAB?

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

回答 (1 件)

Matt J
Matt J 2025 年 9 月 2 日 11:15
編集済み: Matt J 2025 年 9 月 2 日 12:35
It sounds like this might benefit you,
It will fit all the quadric shapes you mention, and doesn't require any toolboxes. However, it may not do all of the pre- and post-processing- that you describe.

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by