Open gdevenyi opened 6 years ago
It would be great to have this more generally. Currently I use 3dBlurInMask
, but that’s the only part of AFNI I ever touch so to have it natively in ANTs would be helpful.
@spinicist good point, it would be nice to also have in SmoothImage
I haven't got time to implement this right now, but I took a look at the code. SmoothImage
calls the ITK DiscreteGaussianImageFilter
which uses a NeighborhoodOperatorImageFilter
. There is a subclass of this that takes a mask:
https://itk.org/Doxygen/html/classitk_1_1MaskNeighborhoodOperatorImageFilter.html
@cookpa oh nice. Definitely doable then!
When registering with a mask, it appears (though I'm not sure exactly where to look...) that the smoothing happens over the whole image.
It should be possible to compensate for masking using this equality: