[Insight-users] itkConstantPadImageFilter

Dan Mueller dan.muel at gmail.com
Wed Jul 30 05:53:08 EDT 2008


Hi Alexandre,

You may want to look at the test for this filter:
    Testing\Code\BasicFilters\itkConstantPadImageTest.cxx

To pad with a zero value (rather than 13 as shown in the test), use
the following line:
    constantPad->SetConstant(itk::NumericTraits<ShortImage::PixelType>::Zero);

Hope this helps.

Regards, Dan

2008/7/30 alexandre govignon <govignon.alexandre at gmail.com>:
> Hi all users!
> I need to know how can i use the itkConstantPadImageFilter, to pad an
> image with zero value.
> Somebody could help me?
>
> Thank you for advance,
>
> Kind regards,
> Alexandre Govignon.
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list