How to show reconstructed 3D point cloud in specific UIAxes?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!