필터 지우기
필터 지우기

how draw in surf in color blue

조회 수: 2 (최근 30일)
samer mahmoud
samer mahmoud 2015년 12월 18일
댓글: Walter Roberson 2015년 12월 19일
i want draw in blue not black in surf and i have this code
rgbPic = im2uint8(rgbPic);
axis([-500 500 -500 500 -500 500]);
xlabel('x');
ylabel('y');
zlabel('z');
xImage = [-300 300; -300 300];
yImage = [0 0; 0 0];
zImage = [300 300; -300 -300];
h=surf(xImage,yImage,zImage,...
'CData',rgbPic,...
'FaceColor','texturemap','EdgeColor','none','LineStyle','none','AlphaData',gradient(z));
  댓글 수: 5
samer mahmoud
samer mahmoud 2015년 12월 19일
walter this the code define all
Walter Roberson
Walter Roberson 2015년 12월 19일
Change it to
tmp = zeros(bwPicSize(1),bwPicSize(2));
tmp(foreground==0)=255;
rgbPic = zeros(bwPicSize(1),bwPicSize(2),3);
rgbPic(:,:,3) = tmp;

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

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by