greetings,<div><br></div><div>sorry for a newbie question:<br><div><br></div><div>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.</div>
<div><br></div><div>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:</div>
<div><br></div><div><div><div><br></div><div> const unsigned int inDim = 3;</div><div> typedef signed short PixelType; // for DICOM</div><div> typedef itk::Image< PixelType, inDim > inImageType;</div><div><br></div>
</div><div> const unsigned int outDim = 2;</div><div> typedef itk::Image< PixelType, outDim > outImageType;</div><div> typedef itk::ResampleImageFilter< inImageType, outImageType > resampleFilterType;</div>
<div><br></div><div> resampleFilterType::Pointer resampleFilter = resampleFilterType::New();</div><div><br></div><div><br></div><div>(see the compilation error below)</div><div><br></div><div>In vtkImageReslice, one only has to specify the output dimensionality via vtkImageReslice::SetOutputDimensionality.</div>
<div><br></div><div>Can anyone please shed some light into this?</div><div><br></div><div>thanks,</div><div><br></div><div><br></div><div>Elvis</div><div><br></div><div>----------------</div><div><br></div><div><div><br></div>
<div>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)'</div>
<div>1> with</div><div>1> [</div><div>1> TOutputImage=inImageType</div><div>1> ]</div><div>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</div>
<div>1> with</div><div>1> [</div><div>1> TOutputImage=inImageType</div><div>1> ]</div><div>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)'</div>
<div>1> with</div><div>1> [</div><div>1> TOutputImage=inImageType</div><div>1> ]</div><div>1> ..\src\itkResampleImage_test.cpp(30) : see reference to class template instantiation 'itk::ImageSeriesReader<TOutputImage>' being compiled</div>
<div>1> with</div><div>1> [</div><div>1> TOutputImage=inImageType</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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)'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=inImageType,</div><div>1> TOutputImage=outImageType,</div><div>1> VImageDimension=2</div><div>1> ]</div>
<div>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 *)'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=inImageType,</div><div>1> TOutputImage=outImageType</div><div>1> ]</div><div>1> ..\src\itkResampleImage_test.cpp(68) : see reference to class template instantiation 'itk::ResampleImageFilter<TInputImage,TOutputImage>' being compiled</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=inImageType,</div><div>1> TOutputImage=outImageType</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TScalarType=double,</div><div>1> NInputDimensions=2,</div><div>1> NOutputDimensions=2</div><div>1> ]</div><div>
1> and</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> TCoordRep=double,</div>
<div>1> NPointDimension=2</div><div>1> ]</div><div>1> Reason: cannot convert from 'itk::Point<TCoordRep,NPointDimension>' to 'const itk::Point<TCoordRep,NPointDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>
1> TCoordRep=double,</div><div>1> NPointDimension=2</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=itk::Image<PixelType,3>,</div><div>1> TOutput=itk::NumericTraits<short>::RealType,</div><div>1> TCoordRep=double,</div>
<div>1> VIndexDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> Reason: cannot convert from 'ContinuousIndexType' to 'const itk::Index<VIndexDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=itk::Image<PixelType,3>,</div><div>1> TCoordRep=double</div><div>1> ]</div><div>1> and</div><div>
1> [</div><div>1> TCoordRep=double,</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> Reason: cannot convert from 'ContinuousIndexType' to 'const itk::ContinuousIndex<TCoordRep,VIndexDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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)'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=inImageType,</div><div>1> TOutputImage=outImageType,</div><div>1> VImageDimension=2</div><div>1> ]</div>
<div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TScalarType=double,</div><div>1> NInputDimensions=2,</div><div>1> NOutputDimensions=2</div><div>1> ]</div><div>
1> and</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> TCoordRep=double,</div>
<div>1> NPointDimension=2</div><div>1> ]</div><div>1> Reason: cannot convert from 'itk::Point<TCoordRep,NPointDimension>' to 'const itk::Point<TCoordRep,NPointDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>
1> TCoordRep=double,</div><div>1> NPointDimension=2</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TScalarType=double,</div><div>1> NInputDimensions=2,</div><div>1> NOutputDimensions=2</div><div>1> ]</div><div>
1> and</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> TCoordRep=double,</div>
<div>1> NPointDimension=2</div><div>1> ]</div><div>1> Reason: cannot convert from 'itk::Point<TCoordRep,NPointDimension>' to 'const itk::Point<TCoordRep,NPointDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>
1> TCoordRep=double,</div><div>1> NPointDimension=2</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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)</div>
<div>1> with</div><div>1> [</div><div>1> T=double,</div><div>1> NVectorDimension=2</div><div>1> ]</div><div>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 [])'</div>
<div>1> with</div><div>1> [</div><div>1> T=double,</div><div>1> NVectorDimension=3</div><div>1> ]</div><div>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> &)'</div>
<div>1> with</div><div>1> [</div><div>1> T=double,</div><div>1> NVectorDimension=3</div><div>1> ]</div><div>1> while trying to match the argument list '(VectorType, itk::Vector<T,NVectorDimension>)'</div>
<div>1> with</div><div>1> [</div><div>1> T=double,</div><div>1> NVectorDimension=2</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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>'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2,</div><div>1> VIndexDimension=2</div><div>1> ]</div><div>1> and</div><div>1> [</div>
<div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(458) : see declaration of 'itk::ImageBase<VImageDimension>::TransformIndexToPhysicalPoint'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=2</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TScalarType=double,</div><div>1> NInputDimensions=2,</div><div>1> NOutputDimensions=2</div><div>1> ]</div><div>
1> and</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> TCoordRep=double,</div>
<div>1> NPointDimension=2</div><div>1> ]</div><div>1> Reason: cannot convert from 'itk::Point<TCoordRep,NPointDimension>' to 'const itk::Point<TCoordRep,NPointDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>
1> TCoordRep=double,</div><div>1> NPointDimension=2</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>1> c:\users\chene\external_programs\src\insighttoolkit-3.18.0\code\common\itkImageBase.h(408) : see declaration of 'itk::ImageBase<VImageDimension>::TransformPhysicalPointToContinuousIndex'</div>
<div>1> with</div><div>1> [</div><div>1> VImageDimension=3</div><div>1> ]</div><div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=itk::Image<PixelType,3>,</div><div>1> TOutput=itk::NumericTraits<short>::RealType,</div><div>1> TCoordRep=double,</div>
<div>1> VIndexDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> Reason: cannot convert from 'ContinuousIndexType' to 'const itk::Index<VIndexDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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> &'</div>
<div>1> with</div><div>1> [</div><div>1> TInputImage=itk::Image<PixelType,3>,</div><div>1> TCoordRep=double</div><div>1> ]</div><div>1> and</div><div>
1> [</div><div>1> TCoordRep=double,</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> Reason: cannot convert from 'ContinuousIndexType' to 'const itk::ContinuousIndex<TCoordRep,VIndexDimension>'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> VIndexDimension=3</div><div>1> ]</div><div>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div>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)</div>
<div>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> &)'</div>
<div>1> with</div><div>1> [</div><div>1> TCoordRep=double,</div><div>1> NPointDimension=2,</div><div>1> T=double,</div><div>1> NVectorDimension=2</div>
<div>1> ]</div><div>1> while trying to match the argument list '(ContinuousIndexType, VectorType)'</div></div><div><br></div><div><br></div><div><br></div></div></div>