[ITK Community] [ITK community] PasteImageFilter

Matt McCormick matt.mccormick at kitware.com
Thu Feb 20 07:37:01 EST 2014


Hi Arjun,

>
> I get the following error even just after I instantiate my PasteImageFilterType3D::pointer object.
>
> myfile.cpp:2216:1:   required from here
> /home/arjun/MIIA/SimpleITK-debug/ITK/Modules/Filtering/ImageGrid/include/itkPasteImageFilter.hxx:159:3: error: no matching function for call to 'itk::ImageRegion<2u>::SetIndex(itk::PasteImageFilter<itk::Image<double, 3u>, itk::Image<double, 2u>, itk::Image<double, 3u> >::InputImageIndexType&)'
>

It looks like a 3D index is being passed into a 2D ImageRegion (the
first template argument to PasteImageFilter [1] is TInputImage), which
is not going to compile.

Hope this helps,
Matt

[1] http://www.itk.org/Doxygen310/html/classitk_1_1PasteImageFilter.html



More information about the Community mailing list