[Insight-users] using OrientedImage together with FEMRegistrationFilter

yoav levy yoav.itk at gmail.com
Mon Sep 8 03:39:18 EDT 2008


Hi,

Can OrientedImage and FEMRegistrationFilter be used together?

I replaced the itk::Image in
Examples/Registration/DeformableRegistration1.cxx with itk::OrientedImage
(file is attached) and I get a compilation error:

/Insight/Code/Common/itkOrientedImage.h: In member function 'bool
itk::OrientedImage<TPixel,
VImageDimension>::TransformPhysicalPointToContinuousIndex(const
itk::Point<TCoordRepB, NPointDimension>&, itk::ContinuousIndex<TCoordRep,
VImageDimension>&) const [with TCoordRep = float, TPixel = float, unsigned
int VImageDimension = 2u]':
/Insight/Code/Common/itkImageFunction.h:161:   instantiated from 'bool
itk::ImageFunction<TInputImage, TOutput, TCoordRep>::IsInsideBuffer(const
itk::Point<TCoordRep,
itk::ImageFunction<TInputImage,TOutput,TCoordRep>::ImageDimension>&) const
[with TInputImage = itk::OrientedImage<float, 2u>, TOutput =
itk::CovariantVector<double, 2u>, TCoordRep = float]'
/Insight/Examples/Registration/DeformableRegistration1.cxx:371:
instantiated from here
/Insight/Code/Common/itkOrientedImage.h:152: error: no match for 'operator-'
in 'point - ((const itk::OrientedImage<float,
2u>*)this)->itk::OrientedImage<float, 2u>::<anonymous>.itk::Image<float,
2u>::<anonymous>.itk::ImageBase<2u>::m_Origin'
/Insight/Code/Common/itkPoint.txx:126: note: candidates are: itk::Vector<T,
NVectorDimension> itk::Point<TCoordRep, NPointDimension>::operator-(const
itk::Point<TCoordRep, NPointDimension>&) const [with TCoordRep = float,
unsigned int NPointDimension = 2u]
/Insight/Code/Common/itkPoint.txx:110: note:                 itk::Point<T,
NPointDimension> itk::Point<TCoordRep, NPointDimension>::operator-(const
itk::Vector<T, NVectorDimension>&) const [with TCoordRep = float, unsigned
int NPointDimension = 2u]
make[2]: ***
[Examples/Registration/CMakeFiles/DeformableRegistration1.dir/DeformableRegistration1.o]
Error 1
make[1]: ***
[Examples/Registration/CMakeFiles/DeformableRegistration1.dir/all] Error 2
make: *** [all] Error 2

(I use the files from the  "HEAD")

thanks,
Yoav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080908/f81c668c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeformableRegistration1.cxx
Type: text/x-c++src
Size: 12996 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080908/f81c668c/attachment-0001.cxx>


More information about the Insight-users mailing list