Hi,
>finding a way to load your volumes into Matlab
You can use the read_avw tools in $FSLDIR\etc\matlab for that.
Cheers-
Andreas
________________________________
Von: FSL - FMRIB's Software Library im Auftrag von Daniel Goldman
Gesendet: Fr 18.11.2005 22:23
An: [log in to unmask]
Betreff: Re: [FSL] Variable erosion
This is easy to do in Matlab, as there are lots of erosion tools, but I've
found that the best way is as follows:
1. Import the volume into Matlab and binarize it (binarize in avwmaths
or find volume > 0 is a quick way to do this in Matlab)
2. Use the bwperim function to locate the exterior voxels in a
six-connected manner (you can specify other neighborhoods if you want)
3. Use the results of the bwperim function to remove those voxels from
your original volume
You can loop this any number of times to remove successive layers of outer
voxels. The only caveat would be that volumes which are thin in one
dimension may at some point be completely removed because all of their
voxels will become exterior. Step zero, I suppose, is finding a way to
load your volumes into Matlab (we use a different format here, and
someone already wrote a Matlab function to do that for us).
- Daniel
|