필터 지우기
필터 지우기

Display the figure in MATLAB GUI obtained from showPointCloud()

조회 수: 2 (최근 30일)
Pankaja Tanjore
Pankaja Tanjore 2015년 6월 17일
댓글: Pankaja Tanjore 2015년 6월 18일
Hello, I am using the function showPointCloud(); in MATLAB to display the image. I am able to display this image correctly in MATLAB. Now the i want display this figure in MATLAB GUI. Please let me know how to display this in MATLAB GUI.
function DisplayReconstructedScene( pointCloudDisp, J1 )
figure, showPointCloud(pointCloudDisp, J1, 'VerticalAxis', 'Y',...
'VerticalAxisDir', 'Down' );
xlabel('X');
ylabel('Y');
zlabel('Z');
end
Looking forward to hear from you at the earliest.
Thanks Pankaja

답변 (1개)

Grant
Grant 2015년 6월 17일
showPointCloud supports a 'Name/Value' pair construct to specify the parent axes. You can use something like the following:
hAx = subplot(121);
[x,y,z] = sphere(100);
showPointCloud([x(:),y(:),z(:)],'Parent',hAx);
xlabel('X');
ylabel('Y');
zlabel('Z');
if you replace hAx with the handle to your GUI axes, you should be all set.
  댓글 수: 1
Pankaja Tanjore
Pankaja Tanjore 2015년 6월 18일
Hello, I am not clear with the response sent by you. Can you please explain in more detail.I am sending here my function and for which I have generated the figure. Please help me in fixing this problem. Code snippet
%%%%%%%%%function Call%%%%%%%
DisplayReconstructedScene(RimPointCloud_filt, J1_Img);
function DisplayReconstructedScene( pointCloudDisp, J1 )
figure, showPointCloud(pointCloudDisp, J1, 'VerticalAxis', 'Y',... 'VerticalAxisDir', 'Down' ); xlabel('X'); ylabel('Y'); zlabel('Z'); Please let me know how to display the figure obtained in axes in MATLAB GUI.
Looking forward to hear from you at the earliest. Thanks Pankaja
end

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

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by