AW: [Insight-users] NearestNeighborInterpolateImageFunction on
RGB images - compilation error
Luis Ibanez
luis.ibanez at kitware.com
Sun Dec 19 18:44:35 EST 2004
Hi Peter,
We just committed a fix for the documentation of the
itkVectorResampleImageFilter. This should show up correctly
in the Doxygen pages tomorrow (Monday) after the pages
are regenerated overnight.
Regarding the VectorNearestNeighborInterpolators, we can start
crafting a version tomorrow too, so we make sure that it gets
included in the next ITK release (scheduled for Feb 2005).
Regards,
Luis
--------------------------
Boettcher, Dr. Peter wrote:
> Hi Luis,
>
> I would be happy to do so (with your help). In the meantime I think one
> should make some changes to the documentation of the
> VectorResampleImageFilter
> <file:///C:/InsightToolkit-1.8.0/DoxygenInsightToolkit-1.8.0/html/a02943.html> ,
> because it states that there are other interpolation functions beside
> the linear one.
>
> Regards, Peter.
>
>
>
>
> ------------------------------------
> P. Böttcher, Dr med vet, DipECVS
> European Veterinary Specialist in Surgery
> Klinik für Kleintiere
> Universität Leipzig
> An den Tierkliniken 23
> D-04103 Leipzig (Germany)
> Tel: +49-341-9738700
> Fax: +49-341-9738799
> email: boettcher at kleintierklinik.uni-leipzig.de
> <mailto:boettcher at kleintierklinik.uni-leipzig.de>
>
> ------------------------------------------------------------------------
> *Von:* Luis Ibanez [mailto:luis.ibanez at kitware.com]
> *Gesendet:* Fr 17.12.2004 23:24
> *An:* Boettcher, Dr. Peter
> *Cc:* insight-users at itk.org
> *Betreff:* Re: [Insight-users] NearestNeighborInterpolateImageFunction
> on RGB images - compilation error
>
>
> Hi Peter,
>
> The Vector and Scalar interpolators are not interchangeable.
>
> You probably noticed that there is a linear interpolator for
> Scalar images and a separate one for Vector images:
>
> LinearInterpolateImageFunction
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1LinearInterpolateImageFunction.html
>
> VectorLinearInterpolateImageFunction
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1VectorLinearInterpolateImageFunction.html
>
>
>
> The NearestNeighborInterpolateImageFunction
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1NearestNeighborInterpolateImageFunction.html
> is defined only for Scalar images. A specialized version would
> be need it if you want to use this interpolator for vector images.
>
>
> We will be happy to assist you in creating a Vector version
> of the nearest neighbor interpolator and make sure that it
> gets added to the toolkit.
>
>
> Please let us know if you want to do this.
>
>
> Thanks
>
>
> Luis
>
>
>
> ---------------------------
> Boettcher, Dr. Peter wrote:
>
> > Dear itk users
> >
> > I try to resample an RGB image with the VectorResampleImageFilter and
> > NearestNeighborInterpolateImageFunction instead of
> > VectorLinearInterpolateImageFunction (as demonstrated in the
> > ResampleImageFilter6.cxx example). I defined the NearestNeigbor with
> > double as the coords type. Unfortunately I get a compilation error using
> > the NearestNeigbor, indicating thet "RealType" is not a member of
> > 'NumericTraits<class itk::RGBPixel<unsigned char> >'. I get no error
> > using the VectorLinearInterpolateImageFunction.
> >
> > Regards, Peter.
> >
> > --------------------------------------------------
> > CryoRegistration2D.cxx
> > C:\InsightToolkit-1.8.0\Code\Common\itkInterpolateImageFunction.h(44) :
> > error C2039: 'RealType' : Ist kein Element von 'NumericTraits<class
> > itk::RGBPixel<unsigned char> >'
> >
> >
> C:\InsightToolkit-1.8.0\Code\Common\itkNearestNeighborInterpolateImageFunction.h(39)
> > : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage
> > 'itk::InterpolateImageFunction<class itk::Image<class
> > itk::RGBPixel<unsigned char>,2>,dou
> > ble>'
> >
> >
> C:\InsightToolkit-1.8.0\bin\Peter\CryoRegistration2D\CryoRegistration2D.cxx(170)
> > : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage
> > 'itk::NearestNeighborInterpolateImageFunction<class itk::Image<class
> > itk::RGBPixel<unsigned c
> > har>,2>,double>'
> > C:\InsightToolkit-1.8.0\Code\Common\itkInterpolateImageFunction.h(44) :
> > error C2065: 'RealType' : nichtdeklarierter Bezeichner
> >
> >
> C:\InsightToolkit-1.8.0\Code\Common\itkNearestNeighborInterpolateImageFunction.h(39)
> > : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage
> > 'itk::InterpolateImageFunction<class itk::Image<class
> > itk::RGBPixel<unsigned char>,2>,dou
> > ble>'
> >
> >
> C:\InsightToolkit-1.8.0\bin\Peter\CryoRegistration2D\CryoRegistration2D.cxx(170)
> > : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage
> > 'itk::NearestNeighborInterpolateImageFunction<class itk::Image<class
> > itk::RGBPixel<unsigned c
> > har>,2>,double>'
> > C:\InsightToolkit-1.8.0\Code\Common\itkInterpolateImageFunction.h(45) :
> > fatal error C1903: Weiterverarbeitung nach vorhergehendem Fehler nicht
> > moeglich; Kompilierung wird abgebrochen.
> >
> >
> C:\InsightToolkit-1.8.0\Code\Common\itkNearestNeighborInterpolateImageFunction.h(39)
> > : Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage
> > 'itk::InterpolateImageFunction<class itk::Image<class
> > itk::RGBPixel<unsigned char>,2>,dou
> > ble>'
> > Fehler beim Ausführen von cl.exe.
> > ALL_BUILD - 3 Fehler, 0 Warnung(en)
> >
> > ------------------------------------
> >
> > P. Böttcher, Dr med vet, DipECVS
> > European Veterinary Specialist in Surgery
> > Klinik für Kleintiere
> > Universität Leipzig
> > An den Tierkliniken 23
> > D-04103 Leipzig (Germany)
> > Tel: +49-341-9738700
> > Fax: +49-341-9738799
> > email: boettcher at kleintierklinik.uni-leipzig.de
> > <mailto:boettcher at kleintierklinik.uni-leipzig.de>
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
More information about the Insight-users
mailing list