matlab 稀疏化,薄化一个大的稠密的点云数据加载、可视化与导出(源码)

ALS_strip.laz激光点云数据

(7条消息) 激光点云数据22MB左右-其它文档类资源-CSDN文库https://download.csdn.net/download/Vertira/87718495第一步:可视化一下

% Import all 4.5 million points from a laz file
pc = pointCloud('ALS_strip.laz');

% Plot all points of point cloud
pc.plot('Color'       , 'A.intensity', ... % plot intensity of points
        'ColorMapName', 'gray', ...        % use gray colomap
        'MaxPoints'   , Inf, ...           % maximum number of points is set to infinity, this way all points are visualized!
        'MarkerSize'  , 1);                % small points

title('All points', 'Color', 'w');

% Change camera view
h = gca; h.CameraPosition = [617770 5169400 7300]; h.CameraTarget = [635750 5192420 3200]; h.CameraViewAngle = 0.91;

第二步:过滤(和绘制)点云

% Select points with a sampling distance of 10 meter
pc.select('UniformSampling', 10);

% Plot only the selected points
close; % close previous figure
pc.plot('Color'       , 'A.intensity', ...
        'ColorMapName', 'gray', ...
        'MaxPoints'   , Inf, ...
        'MarkerSize'  , 5);

title('Selected points', 'Color', 'w');

% Change camera view
h = gca; h.CameraPosition = [617770 5169400 7300]; h.CameraTarget = [635750 5192420 3200]; h.CameraViewAngle = 0.91;

第三步:导出点云 Export point cloud

% Export the selected points only as ply file (without attributes)
pc.export('ALS_strip_selection.ply');

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值