[Insight-users] ResampleImageFilter 3D to 2D?

Luis Ibanez luis.ibanez at kitware.com
Tue May 25 15:14:57 EDT 2010


Hi Elvis,


                      Welcome to ITK !


In this particular case, you should use as output image
a 3D image show extent is only 1 slice.

Strictly speaking the image that you are looking for
at the output is not a 2D image, since it is actually
embedded in a 3D space.

So, please use a 3D image as output type, and when
defining its "Size", set the "Z" component of the size
to "1".


   Regards,


            Luis


------------------------------------------------------------------------------
On Wed, May 12, 2010 at 10:23 AM, Elvis Chen <elvis.chen at gmail.com> wrote:
> greetings,
> sorry for a newbie question:
>
> I would like to slice a volume in oblique plane and perform some image
> processing on the resulting slice.  I have a code in VTK, using
> vtkImageReslice that slice the volume exactly the way I want it, but I'm
> having a hard time accomplishing the same task using
> itk::ResampleImageFilter.
> One of the particular problem I'm facing is that I cannot figure how to
> specify the output dimension in itk::ResampleImageFilter.  If I use typedef
> to define an input image type with a dimension of 3, and an output image
> type with a dimension of 2, the itk::ResampleImageFilter::New() gives me
> problem:
>
>   const unsigned int inDim = 3;
>   typedef signed short PixelType; // for DICOM
>   typedef itk::Image< PixelType, inDim > inImageType;
>   const unsigned int outDim = 2;
>   typedef itk::Image< PixelType, outDim > outImageType;
>   typedef itk::ResampleImageFilter< inImageType, outImageType >
> resampleFilterType;
>   resampleFilterType::Pointer resampleFilter = resampleFilterType::New();
>
> (see the compilation error below)
> In vtkImageReslice, one only has to specify the output dimensionality via
> vtkImageReslice::SetOutputDimensionality.
> Can anyone please shed some light into this?
> thanks,
>
> Elvis
> ----------------
>
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\io\itkImageFileReader.txx(361)
> : while compiling class template member function 'void
> itk::ImageFileReader<TOutputImage>::GenerateData(void)'
> 1>        with
> 1>        [
> 1>            TOutputImage=inImageType
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\io\itkImageSeriesReader.txx(143)
> : see reference to class template instantiation
> 'itk::ImageFileReader<TOutputImage>' being compiled
> 1>        with
> 1>        [
> 1>            TOutputImage=inImageType
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\io\itkImageSeriesReader.txx(106)
> : while compiling class template member function 'void
> itk::ImageSeriesReader<TOutputImage>::GenerateOutputInformation(void)'
> 1>        with
> 1>        [
> 1>            TOutputImage=inImageType
> 1>        ]
> 1>        ..\src\itkResampleImage_test.cpp(30) : see reference to class
> template instantiation 'itk::ImageSeriesReader<TOutputImage>' being compiled
> 1>        with
> 1>        [
> 1>            TOutputImage=inImageType
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(254)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(209)
> : while compiling class template member function 'void
> itk::ResampleImageFilter<TInputImage,TOutputImage>::NonlinearThreadedGenerateData(const
> itk::ImageRegion<VImageDimension> &,int)'
> 1>        with
> 1>        [
> 1>            TInputImage=inImageType,
> 1>            TOutputImage=outImageType,
> 1>            VImageDimension=2
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(98)
> : while compiling class template member function 'void
> itk::ResampleImageFilter<TInputImage,TOutputImage>::SetOutputSpacing(const
> double *)'
> 1>        with
> 1>        [
> 1>            TInputImage=inImageType,
> 1>            TOutputImage=outImageType
> 1>        ]
> 1>        ..\src\itkResampleImage_test.cpp(68) : see reference to class
> template instantiation 'itk::ResampleImageFilter<TInputImage,TOutputImage>'
> being compiled
> 1>        with
> 1>        [
> 1>            TInputImage=inImageType,
> 1>            TOutputImage=outImageType
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(254)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(257)
> : error C2664:
> 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::TransformPoint'
> : cannot convert parameter 1 from 'itk::Point<TCoordRep,NPointDimension>' to
> 'const itk::Point<TCoordRep,NPointDimension> &'
> 1>        with
> 1>        [
> 1>            TScalarType=double,
> 1>            NInputDimensions=2,
> 1>            NOutputDimensions=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        Reason: cannot convert from
> 'itk::Point<TCoordRep,NPointDimension>' to 'const
> itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(258)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(258)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(258)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(279)
> : error C2664: 'bool
> itk::ImageFunction<TInputImage,TOutput,TCoordRep>::IsInsideBuffer(const
> itk::Index<VIndexDimension> &) const' : cannot convert parameter 1 from
> 'ContinuousIndexType' to 'const itk::Index<VIndexDimension> &'
> 1>        with
> 1>        [
> 1>            TInputImage=itk::Image<PixelType,3>,
> 1>            TOutput=itk::NumericTraits<short>::RealType,
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            VIndexDimension=3
> 1>        ]
> 1>        Reason: cannot convert from 'ContinuousIndexType' to 'const
> itk::Index<VIndexDimension>'
> 1>        with
> 1>        [
> 1>            VIndexDimension=3
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(283)
> : error C2664:
> 'itk::InterpolateImageFunction<TInputImage,TCoordRep>::EvaluateAtContinuousIndex'
> : cannot convert parameter 1 from 'ContinuousIndexType' to 'const
> itk::ContinuousIndex<TCoordRep,VIndexDimension> &'
> 1>        with
> 1>        [
> 1>            TInputImage=itk::Image<PixelType,3>,
> 1>            TCoordRep=double
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        Reason: cannot convert from 'ContinuousIndexType' to 'const
> itk::ContinuousIndex<TCoordRep,VIndexDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(363)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(316)
> : while compiling class template member function 'void
> itk::ResampleImageFilter<TInputImage,TOutputImage>::LinearThreadedGenerateData(const
> itk::ImageRegion<VImageDimension> &,int)'
> 1>        with
> 1>        [
> 1>            TInputImage=inImageType,
> 1>            TOutputImage=outImageType,
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(363)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(367)
> : error C2664:
> 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::TransformPoint'
> : cannot convert parameter 1 from 'itk::Point<TCoordRep,NPointDimension>' to
> 'const itk::Point<TCoordRep,NPointDimension> &'
> 1>        with
> 1>        [
> 1>            TScalarType=double,
> 1>            NInputDimensions=2,
> 1>            NOutputDimensions=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        Reason: cannot convert from
> 'itk::Point<TCoordRep,NPointDimension>' to 'const
> itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(368)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(368)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(368)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(388)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(388)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(389)
> : error C2664:
> 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::TransformPoint'
> : cannot convert parameter 1 from 'itk::Point<TCoordRep,NPointDimension>' to
> 'const itk::Point<TCoordRep,NPointDimension> &'
> 1>        with
> 1>        [
> 1>            TScalarType=double,
> 1>            NInputDimensions=2,
> 1>            NOutputDimensions=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        Reason: cannot convert from
> 'itk::Point<TCoordRep,NPointDimension>' to 'const
> itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(391)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(391)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(391)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(392)
> : error C2679: binary '=' : no operator found which takes a right-hand
> operand of type 'itk::Vector<T,NVectorDimension>' (or there is no acceptable
> conversion)
> 1>        with
> 1>        [
> 1>            T=double,
> 1>            NVectorDimension=2
> 1>        ]
> 1>
>  C:\Users\Chene\external_programs\src\InsightToolkit-3.18.0\Code\Common\itkVector.h(125):
> could be 'itk::Vector<T,NVectorDimension>
> &itk::Vector<T,NVectorDimension>::operator =(const double [])'
> 1>        with
> 1>        [
> 1>            T=double,
> 1>            NVectorDimension=3
> 1>        ]
> 1>
>  C:\Users\Chene\external_programs\src\InsightToolkit-3.18.0\Code\Common\itkVector.h(225):
> or       'itk::Vector<T,NVectorDimension>
> &itk::Vector<T,NVectorDimension>::operator =(const
> itk::Vector<T,NVectorDimension> &)'
> 1>        with
> 1>        [
> 1>            T=double,
> 1>            NVectorDimension=3
> 1>        ]
> 1>        while trying to match the argument list '(VectorType,
> itk::Vector<T,NVectorDimension>)'
> 1>        with
> 1>        [
> 1>            T=double,
> 1>            NVectorDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(429)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(429)
> : error C2784: 'void
> itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint(const
> itk::Index<VIndexDimension> &,itk::Point<TPointValueType,2> &) const' :
> could not deduce template argument for 'itk::Point<TPointValueType,2> &'
> from 'itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            VImageDimension=2,
> 1>            VIndexDimension=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'
> 1>        with
> 1>        [
> 1>            VImageDimension=2
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(433)
> : error C2664:
> 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::TransformPoint'
> : cannot convert parameter 1 from 'itk::Point<TCoordRep,NPointDimension>' to
> 'const itk::Point<TCoordRep,NPointDimension> &'
> 1>        with
> 1>        [
> 1>            TScalarType=double,
> 1>            NInputDimensions=2,
> 1>            NOutputDimensions=2
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        Reason: cannot convert from
> 'itk::Point<TCoordRep,NPointDimension>' to 'const
> itk::Point<TCoordRep,NPointDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(434)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(434)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(434)
> : error C2784: 'bool
> itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex(const
> itk::Point<TPointValueType,3> &,itk::ContinuousIndex<TCoordRep,3> &) const'
> : could not deduce template argument for 'itk::ContinuousIndex<TCoordRep,3>
> &' from 'ContinuousIndexType'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>
>  c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408)
> : see declaration of
> 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'
> 1>        with
> 1>        [
> 1>            VImageDimension=3
> 1>        ]
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(458)
> : error C2664: 'bool
> itk::ImageFunction<TInputImage,TOutput,TCoordRep>::IsInsideBuffer(const
> itk::Index<VIndexDimension> &) const' : cannot convert parameter 1 from
> 'ContinuousIndexType' to 'const itk::Index<VIndexDimension> &'
> 1>        with
> 1>        [
> 1>            TInputImage=itk::Image<PixelType,3>,
> 1>            TOutput=itk::NumericTraits<short>::RealType,
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        and
> 1>        [
> 1>            VIndexDimension=3
> 1>        ]
> 1>        Reason: cannot convert from 'ContinuousIndexType' to 'const
> itk::Index<VIndexDimension>'
> 1>        with
> 1>        [
> 1>            VIndexDimension=3
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(462)
> : error C2664:
> 'itk::InterpolateImageFunction<TInputImage,TCoordRep>::EvaluateAtContinuousIndex'
> : cannot convert parameter 1 from 'ContinuousIndexType' to 'const
> itk::ContinuousIndex<TCoordRep,VIndexDimension> &'
> 1>        with
> 1>        [
> 1>            TInputImage=itk::Image<PixelType,3>,
> 1>            TCoordRep=double
> 1>        ]
> 1>        and
> 1>        [
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        Reason: cannot convert from 'ContinuousIndexType' to 'const
> itk::ContinuousIndex<TCoordRep,VIndexDimension>'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            VIndexDimension=3
> 1>        ]
> 1>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 1>c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\basicfilters\itkResampleImageFilter.txx(484)
> : error C2679: binary '+=' : no operator found which takes a right-hand
> operand of type 'VectorType' (or there is no acceptable conversion)
> 1>
>  C:\Users\Chene\external_programs\src\InsightToolkit-3.18.0\Code\Common\itkPoint.h(107):
> could be 'const itk::Point<TCoordRep,NPointDimension>
> &itk::Point<TCoordRep,NPointDimension>::operator +=(const
> itk::Vector<T,NVectorDimension> &)'
> 1>        with
> 1>        [
> 1>            TCoordRep=double,
> 1>            NPointDimension=2,
> 1>            T=double,
> 1>            NVectorDimension=2
> 1>        ]
> 1>        while trying to match the argument list '(ContinuousIndexType,
> VectorType)'
>
>
>
> _____________________________________
> 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.html
>
> 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