Processing of LiDAR point cloud data

조회 수: 11 (최근 30일)
MHMD
MHMD 2024년 1월 3일
댓글: MHMD 2024년 11월 26일 14:33
how can i set 2d regular grid on point cloud data ?
i want to extract buildings from point cloud in matlab , how can i do this with using point normals and hights?

채택된 답변

Sai Pavan
Sai Pavan 2024년 11월 25일 10:58
Hello,
If I understand you correctly, it appears like you have 2 queries. You want to get a 2D grid of points from point cloud data and secondly, you want to know the process of extracting buildings with point normals and heghts.
To set up a 2D regular grid on point cloud data, you can use the "pcbin" function by setting the desired grid resolution and then use "select" function to create a new point cloud from a particular grid location.
Refer to the below documentation pages to learn more about:
Below is the workflow to extract buildings from point cloud data with the help of normals and height information:
  1. Import your point cloud data into MATLAB.
  2. Compute normals to distinguish between vertical and horizontal surfaces.
  3. Use normals and height thresholds to filter building points.
  4. Display the filtered points to verify building extraction.
Please refer to the below code snippet that illustrates this workflow:
ptCloud = pcread('dummy.ply');
normals = pcnormals(ptCloud);
normalThreshold = 0.9; % Vertical surface threshold
heightThreshold = 2; % Minimum height for buildings
zNormals = normals(:, 3);
% Filter points
buildingIndices = abs(zNormals) < (1 - normalThreshold) & ...
ptCloud.Location(:, 3) > heightThreshold;
buildingPoints = select(ptCloud, buildingIndices);
figure;
pcshow(buildingPoints);
title('Extracted Buildings');
Hope it helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labeling, Segmentation, and Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by