Diffusion gradient vector field in 3D

版本 1.2.0.0 (2.0 KB) 作者: Khaled Khairy
Generate in 3D the diffusion gradient vector field as in Xu and Prince 1998
914.0 次下载
更新时间 2014/1/6

查看许可证

Generate the diffusion gradient vector field as in Xu and Prince 1998
dgvf_calc is the three dimensional extension of the 2D version described in Equation 12
Xu and Prince 1998,"Snakes, Shapes, and Gradient Vector Flow", IEEE Transactions on Image Processing Vol.7(3)

Input:
I: three dimensional image (matrix) (assumed normalized as in I = (I-min(I(:)))/(max(I(:))-min(I(:))));
miu: the smoothing parameter (more smoothing -- higher miu-- for noisy images)
niter: number of iterations
dt: time step
dx, dy,dz: pixel spacing, set all to one for isotropic images

Output:
un, vn, wn: the gradient vector field

Example usage:
[un vn wn] = dgvf_calc(I,sqrt(numel(I)), 0.5, 1, 1, 1, 1)

Note: The code was developed with 3d flourescence microscopy images in mind (bright objects against dark background). Enforcement of boundary conditions has been omitted for better performance in this case.

% Author: Dr.Khaled Khairy, Janelia Farm Research Campus, Howard Hughes Medical Institute.June 2011.
Please send corrections or comments to khairyk@janelia.hhmi.org

引用格式

Khaled Khairy (2024). Diffusion gradient vector field in 3D (https://www.mathworks.com/matlabcentral/fileexchange/31994-diffusion-gradient-vector-field-in-3d), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

added note to clarify the scope of application.

1.1.0.0

minor correction to the comments and synchronized variable names with original publication.

1.0.0.0