How can i use 'pcdownsampling' from Computer Vision System Toolbox?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 25 Feb. 2016
Beantwortet: MathWorks Support Team
am 25 Feb. 2016
I would like to downsample a cloud of points such as no points is within a given distance of each other. In other word, I would like to downsample such that the minimum distance between the remaining point is higher than a threshold value. Using the 'gridAverage' method, the minimum distance between point is not higher than the 'gridStep', as shown here:
>> ptCloud = pcread('teapot.ply');
>> gridStep = 0.1;
>> ptCloudA = pcdownsample(ptCloud,'gridAverage',gridStep);
>> disp(min(pdist(ptCloudA.Location)))
� 0.0194557
Akzeptierte Antwort
MathWorks Support Team
am 25 Feb. 2016
When using 'pcdownsample' with the 'gridAverage' method, the downsampled points are achieved by averaging the points inside each voxel of the 3-D grid. The size of the voxel is specified as 'gridStep'. Because of the averaging, the distance between the outputs of two neighboring voxels can be smaller than gridStep. The 'pcdownsample' cannot be used to achieve a minimum distance between point.
For a workaround, please refer to the attached script.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Feature Detection and Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!