Hi Mark,
Would this limit the smoothing to not include any values outside the mask in
the smoothed data or simply produce smoothed data that has zeros outside the
mask? I went about this a different way (using custom code).
Peace,
Matt.
P.S. As David says, I have a lot of e-mails to read ;)
-----Original Message-----
From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
Of Mark Jenkinson
Sent: Monday, September 05, 2011 2:00 AM
To: [log in to unmask]
Subject: Re: [FSL] limit smoothing kernel to the mask?
Dear Xiangzhen,
If what you have is a 3D or 4D binary mask image and you want
to have values within this mask smoothed and have zeros
outside then the following will do what you want:
fslmaths origimage -s 3.82 -mas maskimage result1
fslmaths maskimage -s 3.82 -mas maskimage result2
fslmaths result1 -div result2 finalresult
All the best,
Mark
On 4 Sep 2011, at 17:21, Xiangzhen Kong wrote:
> Hi,all~
> I have a problem these days.
> I want to smooth(e.g. a Gaussian kernel with FWHM=9mm) a 4D file.
> But how can I limit the smoothing kernel to the mask only?
>
> Best!
>
> 2011-09-05
> Xiangzhen Kong
|