Overlay two pointclouds to compare them

조회 수: 6 (최근 30일)
Adrián Tomillo Jorge
Adrián Tomillo Jorge 2021년 11월 13일
답변: Srivardhan Gadila 2021년 11월 15일
ptCloudA=readmatrix('Herramienta_1_1.txt');
ptCloudB=readmatrix('Herramienta_1_12.txt');
>> pcshowpair(ptCloudA,ptCloudB)
Error using pcshowpair
Expected ptCloudA to be one of these types:
pointCloud
Instead its type was double.
Error in pcshowpair (line 76)
validateattributes(ptCloudA, {'pointCloud'}, {'scalar'}, 'pcshowpair', 'ptCloudA');
Hello, I have two .txt files with points cloud from a confocal microscope. I want to plot both points cloud and overlay them. I have tried the above but this error appears. I´m really noon in matlab so i dont understand anything.
I have managed to display both by applying this:
>> ptCloudA=readmatrix('Herramienta_1_1.txt');
ptCloudB=readmatrix('Herramienta_1_12.txt');
pcshow(ptCloudA,'b')
hold on
pcshow(ptCloudB,'r')
but i would like to know how to use the pcshowpair command.
Thanks

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2021년 11월 15일
The inputs ptCloudA & ptCloudB should be pointCloud objects, refer to the documentation of pcshowpair for more information.
Refer to the documentation of pointCloud for converting the matrices ptCloudA & ptCloudB into pointCloud objects.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by