createVoronoi(centr​oids,imageFilename)

版本 1.1.0.0 (2.9 KB) 作者: Audrey Cheong
Given a list of centroids, it computes the 2D/3D voronoi diagram.
969.0 次下载
更新时间 2015/10/15

查看许可证

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Voronoi Diagram 的更多信息
致谢

启发作品: Voronoi Label N dimensions

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

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

1.0.0.0