Binary mask for .stl file of large size
Mostra commenti meno recenti
I'm trying to create binary mask for .stl files of segemented organs. With fat and muscle data of size (3116232x3 double) and (1521380x3 double) respectively, the inpolyhedron function doesn't work and shows an error saying it goes beyond 15 GB. So, I try to reduce their size. Which works fine, but on doing so a large amount of data is cropped out. Your suggestions would be valuable.
vertices = triangulationData.Points;
faces = triangulationData.ConnectivityList;
if size(vertices, 1) > 1e6 || size(faces, 1) > 1e6
[reducedFaces, reducedVertices] = reducepatch(struct('faces', faces, 'vertices', vertices), 5);
points = reducedVertices;
faces = reducedFaces;
else
points = vertices;
faces = faces;
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Other Formats in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!