Code covered by the BSD License  

Highlights from
shrinkWrap

Be the first to rate this file! 23 Downloads (last 30 days) File Size: 3.58 KB File ID: #29175
image thumbnail

shrinkWrap

by Sean de

 

29 Oct 2010 (Updated 08 Feb 2011)

shrinkWrap creates a binary map for automatic segmentation of high intensity areas in a 2D/3D images

| Watch this File

File Information
Description

This function amplifies areas of high intensity and segments them using a front. The front is initialized on the convex hull (for speed) and erodes the map until it has converged on the edge of the areas to keep, maintaining edge geometry.

The idea and title for this function come from Dr. Tong Zhang's PhD Thesis (RPI, 2004), who used a fast marching level set method and a rapid change in gradient magnitude for the segmentation.

Acknowledgements
This submission has inspired the following:
Processing Script for Cryostratigraphy Using X-ray Computed Tomography Scans of Permafrost Cores
Required Products Image Processing Toolbox
MATLAB release MATLAB 7.9 (2009b)
Other requirements The Image Processing Toolbox is selected as a requirement. It is only a requirement if a connected components analysis is requested. If you want to use this function and don't have the IPT set 'MinSize' to 1, and do not call 'Biggest'.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
14 Nov 2010 Harsha Vardhan

This file has some inherent mlint error, it does not run

15 Nov 2010 Sean de

Harsha,
What M-LINT error?
If you are using an older version of MATLAB, the tilde (~) does not work as an output argument. It's recommended in newer versions to use this for speed and that would probably create an error. If this is the case, the error would be on line 195. To fix it just replace the '~' with a junk variable (something like junk)

23 Mar 2012 privatemeet none

Dear Sean, do you have some explanation of how all this work?

Please login to add a comment or rating.
Updates
08 Feb 2011

Fixed bug in 'myed' return for a blank image.

Tag Activity for this File
Tag Applied By Date/Time
image processing Sean de 29 Oct 2010 12:12:06
segmentation Sean de 29 Oct 2010 12:12:06
automatic Sean de 29 Oct 2010 12:12:06

Contact us at files@mathworks.com