How can I import a pcd file containing more than xyz information?

조회 수: 1 (최근 30일)
Andreas
Andreas 2025년 6월 11일
댓글: Andreas 2025년 6월 13일
Hi, I want to import a pcd file containing imaging radar data (x,y,z,doppler,range,azimuth,elevation). I tried it with pcread, but unfortunately only the xyz information is imported and all the other information like doppler, etc. is missing. How can I import the pcd data with all their information?
I attached the pcd header information and what pcread imported.

채택된 답변

NVSL
NVSL 2025년 6월 13일
I understand you are trying to read point cloud data for fields other than x, y, z co-ordinates. But MATLAB’s “pcread” function only imports the XYZ coordinates from a “.PCD” file and ignores additional fields like Doppler, Range, Azimuth, and Elevation. To access those extra fields, you need to manually parse the PCD file or use a custom function that reads all data fields.
As your “.PCD” file is in binary format (DATA binary), you'll need to parse the header and then read the binary payload according to the specified field layout. MATLAB doesn't have built-in support for parsing binary PCD beyond basic XYZ, so you need a custom parser.
You can use “fread” in binary mode for file parsing. Please refer to the attached documentation for more information.
Hope this helps!

추가 답변 (0개)

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by