How to prepare the datastore for point cloud classifications

조회 수: 3 (최근 30일)
EMMANUELE BARBERI
EMMANUELE BARBERI 2020년 12월 21일
편집: EMMANUELE BARBERI 2021년 1월 11일
Hi everyone.
I want to use Deep Learning for point clouds' classification starting with at least one of extensions I have available (.ply, .bin, .csv, or .mat). I found this code https://it.mathworks.com/help/vision/ug/train-classification-network-to-classify-object-in-3-d-point-cloud.html that might be useful to me but i have some problem with the creation of the datastore. In fact, I can't insert the labels correctly and the code already fails at the "preview (dsTrain)": the second box is not "1x1 categorical" but undefined. My point clouds files are 32x32x32 cell, how can I prepare correctly the datastore?
Thanks

답변 (1개)

Shashank Gupta
Shashank Gupta 2021년 1월 4일
Hi EMMANUELE,
Currently lidar datastore can be formed in the same way other datastores are form through fileDatastore function, I am not sure what extension you are trying to import but .csv, .mat or .ply can easily imported through csvread/readTable, load or pcread. For .bin file you may explicitly need to write a custom reading function in fileDatastore to import. Even Labels are handled in the same way all datastore in MATLAB does, it iterate over all the subfolder in the given folder and assign a category to each one of them. Refer to the same fileDatastore function to understand how label is imported in general. You can also refer to this which is one of the example implementation for lidar point cloud importing with labels.
Hope it helps.
Cheers
  댓글 수: 1
EMMANUELE BARBERI
EMMANUELE BARBERI 2021년 1월 11일
편집: EMMANUELE BARBERI 2021년 1월 11일
Hi, thanks for your help.
I modified something in the function you showed me and now I obtain the predefinite form of datastore {(pointCloud) (label)}, but at line 5 ( the link I sent: "labels = readall(dsLabels);") Matlab gives me the error in the picture and I'm unable to solve it. Some advice?
Thanks

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by