[Insight-developers] VectorInterpolateImageFunction problems
Luis Ibanez
luis.ibanez at kitware.com
Thu May 8 12:29:13 EDT 2008
Bill,
It seems to be an error in the definition of OutputType...
...I'm building now on VS71 to track this one...
Luis
---------------------
Bill Lorensen wrote:
> Luis,
>
> I still have problems after your update with VS7.
>
> Here is part of the output from the compiler:
>
> Compiling...
> itkAlgorithmsHeaderTest.cxx
> C:\lorensen\Projects\Insight\Code\Common\itkVectorInterpolateImageFunction.h(147)
> : error C2109: subscript requires array or pointer type
> C:\lorensen\Projects\Insight\Code\Common\itkVectorInterpolateImageFunction.h(142)
> : while compiling class-template member function
> 'itk::VectorInterpolateImageFunction<TInputImage,TCoordRep,TPixelType>::OutputType
> itk::VectorInterpolateImageFunction<TInputImage,TCoordRep,TPixelType>::EvaluateAtIndex(const
> itk::VectorInterpolateImageFunction<TInputImage,TCoordRep,TPixelType>::IndexType
> &) const'
> with
> [
> TInputImage=itk::fem::FEMRegistrationFilter<TMovingImage,TFixedImage>::FieldType,
> TCoordRep=itk::fem::FEMRegistrationFilter<TMovingImage,TFixedImage>::CoordRepType,
> TPixelType=itk::Image<itk::fem::FiniteDifferenceFunctionLoad<TPixel,VImageDimension>::VectorType,1>::PixelType
> ]
> c:\lorensen\Projects\Insight\Code\Algorithms\itkFEMRegistrationFilter.h(149)
> : see reference to class template instantiation
> 'itk::VectorInterpolateImageFunction<TInputImage,TCoordRep,TPixelType>'
> being compiled
> with
> [
> TInputImage=itk::fem::FEMRegistrationFilter<TMovingImage,TFixedImage>::FieldType,
> TCoordRep=itk::fem::FEMRegistrationFilter<TMovingImage,TFixedImage>::CoordRepType,
> TPixelType=itk::Image<itk::fem::FiniteDifferenceFunctionLoad<TPixel,VImageDimension>::VectorType,1>::PixelType
> ]
> c:\lorensen\Projects\Insight\Code\Algorithms\itkFEMRegistrationFilter.h(555)
> : see reference to class template instantiation
> 'itk::fem::FEMRegistrationFilter<TMovingImage,TFixedImage>' being
> compiled
>
> Build log was saved at
> "file://c:\lorensen\Projects\Insight-net\Testing\Code\Algorithms\itkAlgorithmsHeaderTest.dir\Release\BuildLog.htm"
> itkAlgorithmsHeaderTest - 1 error(s), 0 warning(s)
>
>
>
>
> On Thu, May 8, 2008 at 10:22 AM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>>Hi Bill,
>>
>>
>>Here is the pattern I see being used in other classes:
>>
>> ITK_TYPENAME NumericTraits<
>> typename TInputImage::PixelType::ValueType
>> >::RealType
>>
>>while in last night commit I used
>>
>> ITK_TYPENAME NumericTraits<
>> ITK_TYPENAME TInputImage::PixelType::ValueType
>> >::RealType
>>
>>
>>e.g.
>>The argument of NumericTraits was using ITK_TYPENAME as well.
>>
>>
>>I just committed a change by replacing "ITK_TYPENAME" with "typename"
>>in the NumericTraits argument. Hopefully this will take care of the
>>problem in VS60.
>>
>>
>>The problem in the systems with wrapping is more likely due to
>>the lack of including the new NumericTraitsFixedArrayPixel.h.
>>
>>
>>I'm trying to identify what is the proper place for #including
>>this file....
>>
>>
>>
>> Luis
>>
>>
>>
>>----------------------
>>Bill Lorensen wrote:
>>
>>>Luis,
>>>
>>>There are several builds having various problems with the new vector
>>>image function code. Some of the builds must have template
>>>instantiation on. I took a quick glance, but the errors are beyond my
>>>expertise. Some may be due to wrapping being turned on.
>>>
>>>Bill
>>>
>>
>
More information about the Insight-developers
mailing list