필터 지우기
필터 지우기

how to generate image of spherical object ?

조회 수: 2 (최근 30일)
ajeet verma
ajeet verma 2017년 7월 10일
편집: Walter Roberson 2017년 7월 10일
i need spherical object in 2d matrix image, i have an example
m=1000;
n=1000;
%object
[X,Y,Z]=peaks;
Z1=imresize(Z,[m,n]);
figure,imshow(Z1,[])
here image shows peaks in 3D and similarly i need a sphere.
  댓글 수: 1
Adam
Adam 2017년 7월 10일
Surely a sphere in a 2d matrix is just a circle?

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2017년 7월 10일
[X,Y,Z]=sphere;
surf(X,Y,Z) ;
doc sphere

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by