Make 3d sphere plot from net of sphere

1视图(最近30天)
sarel aharoni
sarel aharoni on 15 Sep 2021
Commented: sarel aharoni2021年9月19日
Hey I had 360*180 matrix that hold bw image present field of view of camera (azimuth and elevation) I want the plot the field of view on 3d sphere plot...How can i do it?Try to use sph2cart, but get confused... thanks.

Accepted Answer

KSSV
KSSV on 15 Sep 2021
clc; clearall;
I = imread('cameraman.tif');
[m,n] = size(I) ;
[X,Y,Z] = sphere(m-1,n-1) ;
surf(X,Y,Z,flipud(I),'FaceColor','texturemap','EdgeColor','none');
菌落(灰色)
4条评论
sarel aharoni
sarel aharoni 2021年9月19日
Hay KSSV If i make all '0' spots NaN before draw it will work? And the no-plot the part of sphere?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

开始狩猎!