How to show reconstructed 3D point cloud in specific UIAxes?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have been working on app that gives 3D reconstruction from stereo images for my univeristy lab experiments. But I'm facing a problem while plotting the pointcloud in the UIAxes as usual method .
Basically what i'm trying to develop is when by push the reconstruct button it should reconstruct the scene, and show the reconstructed 3D view in app.UIAxes_2. I tried in many ways like in imshow, plot3, scatter3. But I couldn't solve it. Now it is creating a UIFigure and showing it there. How can i overcome this issue?
I'm new to app designer, So please be kind enough to help me for overcome this problem.
It would be helpful if you can provide any similar app design ideas.
I have attched the parts of code where i have problems.
Thanks in advvance.
% Button pushed function: ReconstructButton
function ReconstructButtonPushed(app, event)
[app.OutL, app.OutR] = rectifyStereoImages(app.InL, app.InR, app.Parameters.stereoParams,'OutputView',"full");
GOutL=rgb2gray(app.OutL);
GOutR=rgb2gray(app.OutR);
a=0;
b=64;
if (app.SGMButton.Value)
disparityMap = disparitySGM(GOutL,GOutR,'DisparityRange',[a,b]);
% imshow(disparityMap,'Parent',app.UIAxes_2)
elseif (app.BMButton.Value)
disparityMap = disparity(GOutL, GOutR,'DisparityRange',[a,b],'UniquenessThreshold',0,...
'ContrastThreshold' ,0.5,'BlockSize',15);
%imshow(disparityMap,'Parent',app.UIAxes_2)
end
point3D = reconstructScene(disparityMap, app.Parameters.stereoParams);
%z = point3D(:,:,3);
%z(z < 0 | z > 1000) = NaN;
%point3D(:,:,3) = z;
pcshow(point3D,app.OutL, 'VerticalAxis', 'Y', 'VerticalAxisDir', 'Down');
end
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!