<div dir='ltr'>Hello,<br><br>I downloaded the source codes of flux driven medial curve extraction filter (MedialCurve-IJCv21) from <a href="http://www.insight-journal.org/browse/publication/165." target="_blank" rel="nofollow" link="external">http://www.insight-journal.org/browse/publication/165.</a> I am using ITK 3.2.0 in my linux box: However, I am getting following error while compiling:<br><br>Thanks,<br><br><br>Scanning dependencies of target itkMedialCurveTest<br>[100%] Building CXX object CMakeFiles/itkMedialCurveTest.dir/itkMedialCurveTest.o<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:19:<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: ‘InputImageDimension’ was not declared in this scope<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: ‘OutputImageDimension’ was not declared in this scope<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: template argument 1 is invalid<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkAverageOutwardFluxImageFilter.h:84: error: template argument 2 is invalid<br>/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’<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,<br> from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:<br>/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]’:<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:626: warning: comparison between signed and unsigned integer expressions<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,<br> from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:<br>/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]’:<br>/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]’<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:56: warning: comparison between signed and unsigned integer expressions<br>/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]’:<br>/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]’<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:272: warning: comparison between signed and unsigned integer expressions<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,<br> from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:328: warning: comparison between signed and unsigned integer expressions<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:381: warning: comparison between signed and unsigned integer expressions<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,<br> from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:<br>/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]’:<br>/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]’<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:111: warning: comparison between signed and unsigned integer expressions<br>/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]’<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:139: warning: comparison between signed and unsigned integer expressions<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:168: warning: comparison between signed and unsigned integer expressions<br>In file included from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.h:209,<br> from /home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:20:<br>/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]’:<br>/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]’<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveTest.cpp:173: instantiated from here<br>/home/lshresth/v2iafemesh/PracticeITKExamples/MedialCurve/MedialCurve-IJCv21/itkMedialCurveImageFilter.txx:457: warning: comparison between signed and unsigned integer expressions<br>make[2]: *** [CMakeFiles/itkMedialCurveTest.dir/itkMedialCurveTest.o] Error 1<br>make[1]: *** [CMakeFiles/itkMedialCurveTest.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br> </div>
<div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
Liza...
</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://itk-users.7.n7.nabble.com/MedialCurve-IJCv21-compilation-error-tp33596.html">MedialCurve-IJCv21 compilation error</a><br/>
Sent from the <a href="http://itk-users.7.n7.nabble.com/">ITK - Users mailing list archive</a> at Nabble.com.<br/>