[Insight-users] Smoothing with a Mask Image

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Feb 14 05:05:23 EST 2007


I'm not sure to understand what you want to do. What kind of boundary  
condition do you want to use ?
In case of a constant one, you can just use the MaskImageFilter, set the  
OutsideValue to the value you want, and then filter the output of the  
MaskImageFilter.

Gaetan


On Wed, 14 Feb 2007 01:58:51 +0100, Albert Huang <alberth+itk at ece.ubc.ca>  
wrote:

> Thanks for the suggestion Gaetan.
>
> I guess I could do so but it'd be a pain to have to interpolate
> the 0 points between two 1 (e.g. _ _ _ _ 1 _ _ 1 1 1 1 _ _)
> with 3D inputs. I guess there isn't any sort of a ROI filter
> or something like that available.
>
> Albert
>
> ----- Original Message -----
> From: "Gaetan Lehmann" <gaetan.lehmann at jouy.inra.fr>
> To: "Albert Huang" <alberth+itk at ece.ubc.ca>; <insight-users at itk.org>
> Sent: Tuesday, February 13, 2007 1:36 AM
> Subject: Re: [Insight-users] Smoothing with a Mask Image
>
> On Tue, 13 Feb 2007 02:15:16 +0100, Albert Huang <alberth+itk at ece.ubc.ca>
> wrote:
>
>> Dear experts,
>>
>> Is there any existing filter in ITK that allows smoothing an image
>> inside a provided binary mask? And whatever is 0 in the binary
>> mask can be treated as boundary condition.
>
> Hi,
>
> Can't you just create a new image with the boundary value outside the
> mask, and apply a smoothing filter on it ?
>
> Gaetan
>
>



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the Insight-users mailing list