[ITK-users] MedialCurve-IJCv21 compilation error

lizashr lizashr at outlook.com
Thu Mar 20 15:07:02 EDT 2014


Hello,

I downloaded the source codes of flux driven medial curve extraction filter (MedialCurve-IJCv21) from http://www.insight-journal.org/browse/publication/165. I am using ITK 3.2.0 in my linux box: However, I am getting following error while compiling:

Thanks,


Scanning dependencies of target itkMedialCurveTest
[100%] Building CXX object CMakeFiles/itkMedialCurveTest.dir/itkMedialCurveTest.o
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:19:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: ‘InputImageDimension’ was not declared in this scope
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: ‘OutputImageDimension’ was not declared in this scope
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: template argument 1 is invalid
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: template argument 2 is invalid
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:88: error: to refer to a type member of a template parameter, use ‘typename TInputVectorPixelType::ValueType’
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,
                 from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx: In member function ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:626: warning: comparison between signed and unsigned integer expressions
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,
                 from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx: In member function ‘bool itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::IsBoundary(typename itk::Image<TInputVectorPixelType, TInputImage::ImageDimension>::IndexType) [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:577:   instantiated from ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:56: warning: comparison between signed and unsigned integer expressions
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx: In member function ‘bool itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::IsExtSimple(typename itk::Image<TInputVectorPixelType, TInputImage::ImageDimension>::IndexType) [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:579:   instantiated from ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:272: warning: comparison between signed and unsigned integer expressions
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,
                 from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:328: warning: comparison between signed and unsigned integer expressions
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:381: warning: comparison between signed and unsigned integer expressions
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,
                 from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx: In member function ‘bool itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::IsIntSimple(typename itk::Image<TInputVectorPixelType, TInputImage::ImageDimension>::IndexType) [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:579:   instantiated from ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:111: warning: comparison between signed and unsigned integer expressions
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:579:   instantiated from ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:139: warning: comparison between signed and unsigned integer expressions
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:168: warning: comparison between signed and unsigned integer expressions
In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,
                 from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx: In member function ‘bool itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::IsEnd(typename itk::Image<TInputVectorPixelType, TInputImage::ImageDimension>::IndexType) [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’:
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:611:   instantiated from ‘void itk::MedialCurveImageFilter<TInputImage, TAverageOutwardFluxPixelType, TOutputPixelType>::GenerateData() [with TInputImage = itk::Image<float, 3u>, TAverageOutwardFluxPixelType = float, TOutputPixelType = unsigned char]’
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173:   instantiated from here
/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:457: warning: comparison between signed and unsigned integer expressions
make[2]: *** [CMakeFiles/itkMedialCurveTest.dir/itkMedialCurveTest.o] Error 1
make[1]: *** [CMakeFiles/itkMedialCurveTest.dir/all] Error 2
make: *** [all] Error 2


 		 	   		  



-----
Liza...
--
View this message in context: http://itk-users.7.n7.nabble.com/MedialCurve-IJCv21-compilation-error-tp33596.html
Sent from the ITK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140320/aaae7ea5/attachment.html>


More information about the Insight-users mailing list