[Insight-users] apply itk::RecursiveGaussianImageFilter on a region defined by a mask

Bradley Lowekamp blowekamp at mail.nih.gov
Sat Aug 10 08:08:32 EDT 2013


Hello,

You could just use a couple of pixel operations to mask the regions. Here is the idea in SimpleITK:

img = sitk.ReadImage( "temp.mha")
mask = img>5
out = sitk.MaskNegated(img,mask)+sitk.Mask(sitk.SmoothingRecursiveGaussian(img,10), mask )

Brad

On Aug 10, 2013, 
 8:00 AM, zilu <zilu at libero.it> wrote:

> Hi everyone,
> 
> I have a question regarding the itk::RecursiveGaussianImageFilter. Now I'm
> using this filter to smooth a 3D displacement field for a registration task. 
> I noticed that there are ways to restrict the application of the filter to a
> Region Of Interest, but as far as understood this ROI can only be cubic.
> My question is: is it possible to apply this filter to a displacement field
> taking into consideration only an ROI defined by a pre-loaded (segmentation)
> mask? And if yes, how can you deal with the boundary conditions?
> Thanks a lot,
> 
> David
> 
> 
> 
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/apply-itk-RecursiveGaussianImageFilter-on-a-region-defined-by-a-mask-tp7583737.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list