Why do I get holes in my AlphaShape in MATLAB, even though the point spacing is smaller than the alpha value?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a set of 3D points and want to reconstruct the shape of a car using AlphaShape. The problem I'm encountering is that I still get holes, even though the distance between the points is smaller than the alpha value. I have already tried adjusting the HoleThreshold with different values, but it has no effect on the result. I have included the code I am using and a picture (zoomed in on the door) showing the type of holes I am referring to.
%% Downsampling
gridstep = 0.008;
ptCloudDownSampled = pcdownsample(ptCloud,"gridAverage",gridstep);
pcshow(ptCloudDownSampled)
x = double(ptCloudDownSampled.Location(:,1));
y = double(ptCloudDownSampled.Location(:,2));
z = double(ptCloudDownSampled.Location(:,3));
%% AlphaShape
shp = alphaShape(x, y, z, 0.13);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1774140/image.jpeg)
4 comentarios
John D'Errico
el 17 de Sept. de 2024
The data might be of value. In fact, it will be terribly difficult to know for sure what happened otherwise. But my guess is it is a large data set, and that might make it problematic to upload the data.
I might make a random conjecture, but any guess will be certainly wrong, based on nothing more than a picture.
Respuestas (0)
Ver también
Categorías
Más información sobre Bounding Regions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!