[Insight-users] error Morphon

Serena Fabbri fabbri at u.washington.edu
Thu Apr 9 14:10:44 EDT 2009


Hi All,

I'd like to use Morphon algorithm to register images.
I downloaded it from insight-journal and when I compile it I obtain errors.
How do I fix it?
Thanks a lot.
Serena



/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx: In function ‘int main(int, char**)’:
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:104: warning: unused variable ‘index’
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonPipe.txx: In member function ‘void itk::MorphonPipe<TFixedImage, TMovingImage, TOutputImage>::GenerateData() [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TOutputImage = main(int, char**)::OutputImageType]’:
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonPipe.txx:224: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonPipe.txx:257: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx: In member function ‘typename itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::PixelType itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::ComputeUpdate(const typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::NeighborhoodType&, void*, const typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::FloatOffsetType&) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:247: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:343: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx: In member function ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::ApplyUpdate(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::FiniteDifferenceFunctionType::TimeStepType) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:168: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx: In member function ‘void itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::ComplexMultConj(typename itk::Image<typename itk::BuildingMorphonFilters<typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::MovingImageType, typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::FixedImageType>::ComplexType, itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::ImageDimension>::Pointer, typename itk::Image<typename itk::BuildingMorphonFilters<typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::MovingImageType, typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::FixedImageType>::ComplexType, itk::ComputingMorphonDeformationField<TFixedImage, 
TMovingImage, TDeformationField>::ImageDimension>::Pointer, typename itk::Image<typename itk::BuildingMorphonFilters<typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::MovingImageType, typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::FixedImageType>::ComplexType, itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::ImageDimension>::Pointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:190:   instantiated from ‘void itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::InitializeIteration() [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:532: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx: In member function ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::DefMult(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::DeformationFieldPointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::DeformationFieldPointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:180:   instantiated from ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::ApplyUpdate(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::FiniteDifferenceFunctionType::TimeStepType) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:238: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx: In member function ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::DefDiv(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::DeformationFieldPointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::DeformationFieldPointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:187:   instantiated from ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::ApplyUpdate(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::FiniteDifferenceFunctionType::TimeStepType) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:294: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx: In member function ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::MatrixMult(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:190:   instantiated from ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::ApplyUpdate(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::FiniteDifferenceFunctionType::TimeStepType) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:345: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx: In member function ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::MatrixDiv(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer, typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::MovingImagePointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:196:   instantiated from ‘void itk::MorphonRegistrationFilter<TFixedImage, TMovingImage, TDeformationField>::ApplyUpdate(typename itk::MorphonToolboxFiler<TFixedImage, TMovingImage, TDeformationField>::FiniteDifferenceFunctionType::TimeStepType) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkMorphonRegistrationFilter.txx:385: warning: comparison between signed and unsigned integer expressions
/Users/physics/InsightApplications-3.10.0/Morphon/itkBuildingMorphonFilters.h: In member function ‘itk::QuadFilter<std::complex<double>, itk::BuildingMorphonFilters<TMovingImage, TFixedImage>::ImageDimension, itk::NeighborhoodAllocator<std::complex<double> > >* itk::BuildingMorphonFilters<TMovingImage, TFixedImage>::GetComplexOp(int) [with TMovingImage = main(int, char**)::InternalImageType, TFixedImage = main(int, char**)::InternalImageType]’:
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:572:   instantiated from ‘void itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::Convolution(int, const typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::MovingImageType*, typename itk::Image<typename itk::BuildingMorphonFilters<typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::MovingImageType, typename itk::MorphonToolbooxFunction<TFixedImage, TMovingImage, TDeformationField>::FixedImageType>::ComplexType, itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::ImageDimension>::Pointer) [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/itkComputingMorphonDeformationField.txx:174:   instantiated from ‘void itk::ComputingMorphonDeformationField<TFixedImage, TMovingImage, TDeformationField>::InitializeIteration() [with TFixedImage = main(int, char**)::InternalImageType, TMovingImage = main(int, char**)::InternalImageType, TDeformationField = itk::Image<main(int, char**)::VectorPixelType, 2u>]’
/Users/physics/InsightApplications-3.10.0/Morphon/main.cxx:122:   instantiated from here
/Users/physics/InsightApplications-3.10.0/Morphon/itkBuildingMorphonFilters.h:88: warning: comparison between signed and unsigned integer expressions

Linking CXX executable itkMorphon
Undefined symbols:
   "itk::ComputingMorphonDeformationField<itk::Image<float, 2u>, itk::Image<float, 2u>, itk::Image<itk::Vector<float, 2u>, 2u> >::eps", referenced from:
       __ZN3itk32ComputingMorphonDeformationFieldINS_5ImageIfLj2EEES2_NS1_INS_6VectorIfLj2EEELj2EEEE3epsE$non_lazy_ptr in main.o
   "itk::MorphonPipe<itk::Image<float, 2u>, itk::Image<float, 2u>, itk::Image<unsigned char, 2u> >::resampling", referenced from:
       __ZN3itk11MorphonPipeINS_5ImageIfLj2EEES2_NS1_IhLj2EEEE10resamplingE$non_lazy_ptr in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [itkMorphon] Error 1
make[1]: *** [CMakeFiles/itkMorphon.dir/all] Error 2
make: *** [all] Error 2





More information about the Insight-users mailing list