[ITK Community] [ITK community] PasteImageFilter

Dženan Zukić dzenanz at gmail.com
Thu Feb 20 06:31:36 EST 2014


Making 3D image from 2D slices is a common problem. There are examples in
ITK, and here is one available online:
http://www.itk.org/Wiki/ITK/Examples/IO/VolumeFromSlices



On Wed, Feb 19, 2014 at 10:14 PM, Arjun S Kumar <arjun89 at cmu.edu> wrote:

> Hi all,
>
> I am trying to make a 3D image with 2D slices using PastImageFIlter.
> Firstly, am I right in setting TinputImage to the 3D image, the
> TSourceImage as the 2D slice and TOutputImage as the resulting 3D image?
>
> 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&)’
>
> This doesn't make any sense to me. I haven't done anything to my
> PasteImageFilter object and I am running into trouble.
>
> If you notice also, the error is coming from my first line. I defined
> PastImageFilterType3D in my .h file. I don't get an error if I comment out
> my instantiation in my cpp file but do get the error I listed above if I
> uncomment it. Can anyone help me find out what I'm doing wrong?
>
> Feel free to ask me for the lines of code pertaining to this issue. There
> are only a few anyway.
>
> Thanks,
>
> Arjun
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140220/859f38d5/attachment-0002.html>


More information about the Community mailing list