How do I generate a spherical image from a 3D matlab figure

4 ビュー (過去 30 日間)
Samuel Lazerson
Samuel Lazerson 2021 年 1 月 6 日
回答済み: Bjorn Gustavsson 2021 年 1 月 6 日
Is there a way to generate fisheye views of a 3D plot in Matlab and stitch them together to form a 360° image? Eventually I'd like to be able to generate 360° from my Matlab 3D datasets.

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 1 月 6 日
Currently matlab has 'orthographic' and 'perspective' for the 'projection'-property of 3-D axes. You can perhaps get a wee bit further using the different camera-settings (CameraViewAngle, CameraPosition, etc) but that seems like a limited option. Your best bet is to roll your own - that is write your own plotting-routines, and then plot with whatever camera-characteristics you need. You will have to manually convert lines in a Cartesian world into curves in your fish-eye image. For points it should be rather simple - just calculate the spherical coordinates phi, theta and r of your points to your "viewing position" and then plot them using your favoured mapping from phi, theta to some "image-coordinates" (u and v say) and then plot everything using u, v and r.
HTH

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by