[Insight-users] More compilation problems with VectorImage
Dr. Uwe Köhler
U.Koehler at gmx.de
Fri Mar 10 03:53:12 EST 2006
Following up on my earlier email, I got further compilation problems related
to the use of VectorImages:
I was unable to use VectorRescaleIntensityImageFilter with a
typedef itk::VectorImage< int, Dimension > IntVectorImageType;
typedef itk::VectorRescaleIntensityImageFilter<
IntVectorImageType, IntVectorImageType>
VectorRescaleIntensityImageFilterType;
VectorRescaleIntensityImageFilterType::Pointer
rescale_filter = VectorRescaleIntensityImageFilterType::New();
the error was:
/usr/local/include/InsightToolkit/BasicFilters/itkVectorRescaleIntensityImageFilter.h:
In instantiation of
‘itk::Functor::VectorMagnitudeLinearTransform<itk::VariableLengthVector<int>,
itk::VariableLengthVector<int> >’:
/usr/local/include/InsightToolkit/BasicFilters/itkUnaryFunctorImageFilter.h:120:
instantiated from ‘itk::UnaryFunctorImageFilter<main(int,
char**)::IntVectorImageType, main(int, char**)::IntVectorImageType,
itk::Functor::VectorMagnitudeLinearTransform<itk::VariableLengthVector<int>,
itk::VariableLengthVector<int> > >’
/usr/local/include/InsightToolkit/BasicFilters/itkVectorRescaleIntensityImageFilter.h:91:
instantiated from ‘itk::VectorRescaleIntensityImageFilter<main(int,
char**)::IntVectorImageType, main(int, char**)::IntVectorImageType>’
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:672:
instantiated from here
/usr/local/include/InsightToolkit/BasicFilters/itkVectorRescaleIntensityImageFilter.h:37:
error: ‘Dimension’ is not a member of ‘itk::VariableLengthVector<int>’
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx: In function
‘int main(int, char**)’:
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:681: error:
invalid use of member (did you forget the ‘&’ ?)
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:681: error:
base operand of ‘->’ is not a pointer
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:691: error:
invalid use of member (did you forget the ‘&’ ?)
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:691: error:
base operand of ‘->’ is not a pointer
/usr/local/include/InsightToolkit/BasicFilters/itkVectorRescaleIntensityImageFilter.txx:
In member function ‘void itk::VectorRescaleIntensityImageFilter<TInputImage,
TOutputImage>::BeforeThreadedGenerateData() [with TInputImage = main(int,
char**)::IntVectorImageType, TOutputImage = main(int,
char**)::IntVectorImageType]’:
/home/ukoehler/devel/C++/ITK/VectorImageTest/VectorImageTest.cxx:709:
instantiated from here
/usr/local/include/InsightToolkit/BasicFilters/itkVectorRescaleIntensityImageFilter.txx:93:
error: ‘class itk::VariableLengthVector<int>’ has no member named
‘GetSquaredNorm’
Who can tell me which filters work with VectorImage or do I have to try them
out?
Cheers
Uwe
--
| |
-+-----------------------------------------------------------------+-
| Dr. Uwe Köhler MR - Physics |
| German Heart Institute Berlin |
| Augustenburger Platz 1 |
| D - 13353 Berlin |
| //// Germany |
| (@ @) Phone: +49 172 98 11 598 |
-+-----oOO--(_)--OOo-----------------------------------------------+-
| <URL:http://www.ed.ac.uk/~ukoehler> <mailto:UKoehler at dhzb.de> |
More information about the Insight-users
mailing list