www.gusucode.com > vision 源码程序 matlab案例代码 > vision/DownsamplePointCloudWithFixedStepExample.m
%% Downsample Point Cloud With Fixed Step % %% % Read and display a point cloud file. % Copyright 2015 The MathWorks, Inc. ptCloud = pcread('teapot.ply'); figure pcshow(ptCloud); %% % Downsample a point cloud with fixed step size stepSize = 10; indices = 1:stepSize:ptCloud.Count; %% % Select indexed point cloud. ptCloudOut = select(ptCloud, indices); %% % Display the selected point cloud. figure pcshow(ptCloudOut);