5.0

5.0 | 6 ratings Rate this file 25 Downloads (last 30 days) File Size: 48.25 KB File ID: #15455
image thumbnail

3D Euclidean Distance Transform for Variable Data Aspect Ratio

by Yuriy Mishchenko

 

29 Jun 2007 (Updated 10 Jul 2007)

Implementation of 3D Euclidean distance transform for data with non-trivial aspect ratio.

| Watch this File

File Information
Description

This function computes Euclidean distance transform for 3D binary image with non-trivial aspect ratio (i.e. anisotropic pixels). The algorithm uses fast optimized line-scans and is actually faster than MATLAB's BWDIST implementation of search on optimized kd-tree for many cases. It also uses cell-array representation for internal data, and thus is less demanding to physical memory.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
07 Jan 2008 ivan scardanzan

not much slower than matlab bwdist (Image Processing Toolbox)
but it requires much less memory and get where you get 'OUT OF MEMORY' with bwdist

so on overall -to me- it is better than bwdist

19 Jun 2008 Jeremy Kress

I tested this on two spheres overlapping in a 81x81x81 binary image. Elapsed time shows bwdistsc to be faster than bwdist by 0.92sec
nice job!

17 Oct 2008 Kishore Kuchibhotla

This has been a huge help. Thanks for posting this--bwdist continuously gave me out of memory problems (I'm computing 3D distance transforms on 512*512*100 size datasets), whereas bwdistsc works very well. The controllable aspect ratio is also helpful.

06 Jul 2010 Oliver Woodford

Does the job.

02 Nov 2011 tudor dima  
14 Dec 2011 leila  
Please login to add a comment or rating.
Updates
10 Jul 2007

The code had been improved to better handle certain type of problems (cavities). It also contains fix allowing use of function with plain 2D images.

Tag Activity for this File
Tag Applied By Date/Time
transforms Yuriy Mishchenko 22 Oct 2008 09:17:47
distance transform Yuriy Mishchenko 22 Oct 2008 09:17:47
aspect ratio Yuriy Mishchenko 22 Oct 2008 09:17:47
euclidean Yuriy Mishchenko 22 Oct 2008 09:17:47
binary image Yuriy Mishchenko 22 Oct 2008 09:17:47

Contact us at files@mathworks.com