[Insight-developers] Re: Compile error
withITK_USE_ORIENTED_IMAGE_DIRECTION on
Stephen R. Aylward
Stephen.Aylward at Kitware.com
Fri Dec 7 11:20:32 EST 2007
I also get the error that Bill is reporting.
Your solution seems valid to me.
Stephen
=======================================
Stephen R. Aylward, Ph.D.
Chief Medical Scientist
Kitware, Inc. - Chapel Hill Office
http://www.kitware.com
Phone: (518)371-3971 x300
> -----Original Message-----
> From:
> insight-developers-bounces+stephen.aylward=kitware.com at itk.org
>
> [mailto:insight-developers-bounces+stephen.aylward=kitware.com
> @itk.org] On Behalf Of Luis Ibanez
> Sent: Friday, December 07, 2007 11:13 AM
> To: Bill Lorensen
> Cc: ITK; Matt Turek
> Subject: [Insight-developers] Re: Compile error
> withITK_USE_ORIENTED_IMAGE_DIRECTION on
>
>
> Hi Bill,
>
> Interesting !
>
>
> 1) I'm not sure why this is not showing up on my Linux build
> where these two CMake variables are also ON: zion.kitware
>
>
>
> 2) The problem seems to arise from the fact that the method:
>
> RotateArrayByDirectionCosines
>
> is implemented at the level of Image and OrientedImage
> while PhasedArray3DSpecialCoordinatesImage derives
> directly from ImageBase.
>
>
> It is the same problem for the methods:
>
> TransformPhysicalPointToIndex()
> TransformIndexToPhysicalPoint()
>
>
>
> 3) Easy solution is to move the default implementation of this
> method to ImageBase... but... the correct implementation
> still must be added to the PhaseArray3DSpecialCoordinatesImage,
> with the difficulty that the Direction depends on the point
> in space. This means that the API of this method may have to
> be modified to look like:
>
> RotateArrayByDirectionCosinesAtPoint( array, point );
>
>
>
>
> Suggestions ?
>
>
>
> Luis
>
>
>
> ----------------------
> Bill Lorensen wrote:
> > Luis,
> >
> > If I have ITK_USE_ORIENTED_IMAGE_DIRECTION ON and the optimized
> > registration on, I get the following compile error on Windows:
> >
> >
> > ------ Build started: Project: itkBasicFiltersTests1,
> Configuration:
> > Release Win32 ------
> >
> > Compiling...
> >
> > itkResamplePhasedArray3DSpecialCoordinatesImageTest.cxx
> >
> >
> c:\lorensen\Projects\Insight\Code\Review\itkOptBSplineInterpolateImage
> > Function.txx(919)
> > : error C2039: 'RotateArrayByDirectionCosines' : is not a member of
> > 'itk::PhasedArray3DSpecialCoordinatesImage<TPixel>'
> >
> > with
> >
> > [
> >
> > TPixel=PixelType
> >
> > ]
> >
> >
> c:\lorensen\Projects\Insight\Code\Common\itkImageHelper.h(143)
> : while
> > compiling class-template member function
> >
> 'itk::BSplineInterpolateImageFunction<TImageType,TCoordRep,TCoefficien
> > tType>::CovariantVectorType
> >
> itk::BSplineInterpolateImageFunction<TImageType,TCoordRep,TCoefficient
> > Type>::EvaluateDerivativeAtContinuousIndexInternal(const
> >
> itk::BSplineInterpolateImageFunction<TImageType,TCoordRep,TCoefficient
> > Type>::ContinuousIndexType &,vnl_matrix<T> &,vnl_matrix<double>
> > &,vnl_matrix<double> &) const'
> >
> > with
> >
> > [
> >
> >
> TImageType=itk::ResampleImageFilter<InputImageType,ImageType,double>::
> > InputImageType,
> >
> > TCoordRep=double,
> >
> > TCoefficientType=double,
> >
> > T=long
> >
> > ]
> >
> >
> C:\lorensen\Projects\Insight\Code\Review\itkOptResampleImageFilter.h(1
> > 24)
> > : see reference to class template instantiation
> >
> 'itk::BSplineInterpolateImageFunction<TImageType,TCoordRep,TCo
> efficientType>'
> > being compiled
> >
> > with
> >
> > [
> >
> >
> TImageType=itk::ResampleImageFilter<InputImageType,ImageType,double>::
> > InputImageType,
> >
> > TCoordRep=double,
> >
> > TCoefficientType=double
> >
> > ]
> >
> >
> \lorensen\Projects\Insight\Testing\Code\BasicFilters\itkResamplePhased
> > Array3DSpecialCoordinatesImageTest.cxx(81)
> > : see reference to class template instantiation
> >
> 'itk::ResampleImageFilter<TInputImage,TOutputImage,TInterpolat
> orPrecisionType>'
> > being compiled
> >
> > with
> >
> > [
> >
> > TInputImage=InputImageType,
> >
> > TOutputImage=ImageType,
> >
> > TInterpolatorPrecisionType=double
> >
> > ]
> >
> > Build log was saved at
> >
> "file://c:\lorensen\Projects\Insight-net\Testing\Code\BasicFil
> ters\itkBasicFiltersTests1.dir\Release\BuildLog.htm"
> >
> > itkBasicFiltersTests1 - 1 error(s), 0 warning(s)
> >
> >
> >
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list