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 CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by