Print

Print


Hi,

The "file" needs to be an image file.
In your case you want a kernel which is 3x1x1 and
contains all ones.  This will then just do the dilation
in x.  You can easily create a file of the appropriate
dimensions using fslcreatehd.

All the best,
	Mark


On 2 May 2010, at 23:22, Dianne Patterson wrote:

> Dear all,
>
> I am struggling with fslmaths.  Here is what I want to do:
>
> 1) I have a mask of the midsagital slice of the corpus callosum.
>
> 2) I want to dilate the mask to include equivalent voxels on the  
> sagittal slice immediately to the right and left of the original  
> slice.
>
> I do NOT want the dilation to grow along the z axis or along the y  
> axis...I only want dilation to extend along the x axis.
>
> I'm imagining that fslmaths infile -kernel file -dilM outfile might  
> be the way to do this...but I am having trouble finding  
> documentation on the format of the "file".
> =========================================
> The only alternative I can imagine is that I split the infile into  
> slices axially, apply 2D dilation to each slice, merge the slices  
> and then split them sagittally, then 2D erode each sagittal slice  
> then merge the slices again.  There must be a smarter alternative??
>
> Thankyou,
>
> Dianne
>
>
> -- 
> Dianne Patterson, Ph.D.
> [log in to unmask]
> University of Arizona
> SLHS 328
> 621-5105