createVoronoi(centr​oids,imageFilename)

Given a list of centroids, it computes the 2D/3D voronoi diagram.
970 descargas
Actualizado 15 oct 2015

Ver licencia

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

Citar como

Audrey Cheong (2024). createVoronoi(centroids,imageFilename) (https://www.mathworks.com/matlabcentral/fileexchange/41729-createvoronoi-centroids-imagefilename), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Voronoi Diagram en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Voronoi Label N dimensions

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

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

1.0.0.0