createVoronoi(centr​oids,imageFilename)

Given a list of centroids, it computes the 2D/3D voronoi diagram.
977 téléchargements
Mise à jour 15 oct. 2015

Afficher la licence

Given a list of centroids, it computes the 2D/3D voronoi diagram and extracts each Voronoi cell from the original image.
The voronoi diagram is calculated based on the Euclidean distance in 3D space.
centroid = [x1 y1 z1]
voxel = [x2 y2 z2]
for each voxel
Euclidean distance = sqrt((x2-x1)^2+(y2-y1)^2+(z2-z1)^2)
end
% Input:
% centroids - N x 3 matrix
% imageFilename - filename of image stack

Citation pour cette source

Audrey Cheong (2026). createVoronoi(centroids,imageFilename) (https://fr.mathworks.com/matlabcentral/fileexchange/41729-createvoronoi-centroids-imagefilename), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2010b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Voronoi Diagram dans Help Center et MATLAB Answers
Remerciements

A inspiré : Voronoi Label N dimensions

Version Publié le Notes de version
1.1.0.0

Code cleanup and improve usability.
Minor modification to make it easier to use.

1.0.0.0