필터 지우기
필터 지우기

How to track the indexes of a PoinCloud object after downsampling?

조회 수: 2 (최근 30일)
Taher Odeh
Taher Odeh 2020년 12월 15일
답변: Prashik Shende 2020년 12월 16일
Is it possible to track the index of the PoinCloud object after downsampling?
ptCloudOut = pcdownsample(ptCloudIn,'random',0.1)
I want to downsample an Mx3 data using pcdownsample(), let's say the index of each point before downsampling is the number of the row.
ptCloudIn has 1000 rows (M=1000), ptCloudOut has 100 rows.

채택된 답변

Prashik Shende
Prashik Shende 2020년 12월 16일
Using pcdownsample you cannot track index you have to follow different approch
lets say if you save all the indices in one variable and in another variable you can select some indices and only select those indices from ptCloudIn you can select.
Like in following code in downsampled variable we can save the indices that you want to track and select those indices from original point cloud
downsampled = [1:5:ptCloudIn.Count]';
ptCloudOut = select(ptCloudIn,downsampled);
figure
pcshow(ptCloudOut)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by