[Insight-users] Errors in compiling code for "Multiscale 2D Objectness (M=1)"
D, Yamini
Yamini.D at philips.com
Wed Aug 29 01:55:31 EDT 2012
From: D, Yamini
Sent: Tuesday, August 28, 2012 10:43 AM
To: insight-users at itk.org
Subject: Errors in compiling code for "Multiscale 2D Objectness (M=1)"
Hi,
I am trying to compile a code for Multiscale 2D Objectness (M=1) ,mentioned in the work by Luca Antiga under the title "Generalizing vesselness with respect to dimensionality and shape" . I am running into a set of errors, Can anyone help?
The source code and error list are as follows:
Code:
http://www.insight-journal.org/browse/publication/175 -->Antiga-IJ-ObjectnessMeasure.pdf (698Kb) [view paper]<http://www.insight-journal.org/download/viewpdf/175/4222/bitstream>
Errorlist:
Error 81 error C2027: use of undefined type 'itk::Concept::HasPixelTraits' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 150
Error 10 error C2039: 'ConstPointer' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 99
Error 23 error C2039: 'ImageDimension' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 104
Error 41 error C2039: 'ImageDimension' : is not a member of '`global namespace'' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 89
Error 57 error C2039: 'ImageDimension' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 50 error C2039: 'OutputImagePixelType' : is not a member of 'itk::ImageSource<TOutputImage>' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 94
Error 45 error C2039: 'OutputImageRegionType' : is not a member of 'itk::ImageSource<TOutputImage>' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 93
Error 19 error C2039: 'PixelType' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 101
Error 37 error C2039: 'PixelType' : is not a member of '`global namespace'' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 86
Error 62 error C2039: 'PixelType' : is not a member of '`global namespace'' D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 53
Error 74 error C2039: 'PixelType' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 120
Error 5 error C2039: 'Pointer' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 98
Error 28 error C2039: 'Pointer' : is not a member of '`global namespace'' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 84
Error 69 error C2039: 'Pointer' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 116
Error 15 error C2039: 'RegionType' : is not a member of '`global namespace'' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 100
Error 33 error C2039: 'RegionType' : is not a member of '`global namespace'' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 85
Error 87 error C2039: 'SetSigmaMax' : is not a member of 'itk::MultiScaleHessianBasedMeasureImageFilter<TInputImage,THessianImage>' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 64
Error 86 error C2039: 'SetSigmaMin' : is not a member of 'itk::MultiScaleHessianBasedMeasureImageFilter<TInputImage,THessianImage>' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 60
Error 78 error C2065: 'OutputPixelType' : undeclared identifier d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 121
Error 80 error C2065: 'OutputPixelType' : undeclared identifier d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 150
Error 64 error C2065: 'PixelType' : undeclared identifier D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 53
Error 26 error C2143: syntax error : missing ';' before '}' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 104
Error 44 error C2143: syntax error : missing ';' before '}' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 89
Error 60 error C2143: syntax error : missing ';' before '}' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 63 error C2146: syntax error : missing ',' before identifier 'PixelType' D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 53
Error 11 error C2146: syntax error : missing ';' before identifier 'InputImageConstPointer' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 99
Error 20 error C2146: syntax error : missing ';' before identifier 'InputImagePixelType' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 101
Error 6 error C2146: syntax error : missing ';' before identifier 'InputImagePointer' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 98
Error 16 error C2146: syntax error : missing ';' before identifier 'InputImageRegionType' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 100
Error 38 error C2146: syntax error : missing ';' before identifier 'OutputImagePixelType' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 86
Error 51 error C2146: syntax error : missing ';' before identifier 'OutputImagePixelType' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 94
Error 29 error C2146: syntax error : missing ';' before identifier 'OutputImagePointer' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 84
Error 70 error C2146: syntax error : missing ';' before identifier 'OutputImagePointer' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 116
Error 34 error C2146: syntax error : missing ';' before identifier 'OutputImageRegionType' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 85
Error 46 error C2146: syntax error : missing ';' before identifier 'OutputImageRegionType' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 93
Error 75 error C2146: syntax error : missing ';' before identifier 'OutputPixelType' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 120
Error 25 error C2146: syntax error : missing '}' before identifier 'ImageDimension' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 104
Error 43 error C2146: syntax error : missing '}' before identifier 'ImageDimension' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 89
Error 59 error C2146: syntax error : missing '}' before identifier 'ImageDimension' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 24 error C2275: 'TInputImage' : illegal use of this type as an expression d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 104
Error 42 error C2275: 'TOutputImage' : illegal use of this type as an expression D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 89
Error 58 error C2275: 'TOutputImage' : illegal use of this type as an expression d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 56 error C2327: 'itk::ImageSource<TOutputImage>::ImageDimension' : is not a type name, static, or enumerator d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 76 error C2371: 'itk::HessianRecursiveGaussianImageFilter<TInputImage,TOutputImage>::PixelType' : redefinition; different basic types d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 120
Error 71 error C2371: 'itk::HessianRecursiveGaussianImageFilter<TInputImage,TOutputImage>::Pointer' : redefinition; different basic types d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 116
Error 30 error C2371: 'itk::ImageSource<TOutputImage>::Pointer' : redefinition; different basic types D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 84
Error 12 error C2371: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::ConstPointer' : redefinition; different basic types d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 99
Error 7 error C2371: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::Pointer' : redefinition; different basic types d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 98
Error 82 error C2440: 'initializing' : cannot convert from 'itk::ImageToImageFilter<TInputImage,TOutputImage> *' to 'ObjectnessFilterType *' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 52
Error 53 error C2602: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::OutputImagePixelType' is not a member of a base class of 'itk::ImageToImageFilter<TInputImage,TOutputImage>' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 94
Error 48 error C2602: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::OutputImageRegionType' is not a member of a base class of 'itk::ImageToImageFilter<TInputImage,TOutputImage>' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 93
Error 84 error C2662: 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage>::SetBrightObject' : cannot convert 'this' pointer from 'ObjectnessFilterType' to 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage> &' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 56
Error 85 error C2662: 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage>::SetGamma' : cannot convert 'this' pointer from 'ObjectnessFilterType' to 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage> &' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 57
Error 88 error C2662: 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage>::SetObjectDimension' : cannot convert 'this' pointer from 'ObjectnessFilterType' to 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage> &' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 72
Error 83 error C2662: 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage>::SetScaleObjectnessMeasure' : cannot convert 'this' pointer from 'ObjectnessFilterType' to 'itk::HessianToObjectnessMeasureImageFilter<TInputImage,TOutputImage> &' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 55
Error 89 error C2664: 'void itk::ImageToImageFilter<TInputImage,TOutputImage>::SetInput(const itk::Image<TPixel,VImageDimension> *)' : cannot convert parameter 1 from 'const itk::Image<TPixel,VImageDimension> *' to 'const itk::Image<TPixel,VImageDimension> *' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 98
Error 73 error C2825: 'itk::HessianRecursiveGaussianImageFilter<TInputImage,TOutputImage>::OutputImageType': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 120
Error 27 error C2825: 'itk::ImageSource<TOutputImage>::OutputImageType': must be a class or namespace when followed by '::' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 84
Error 32 error C2825: 'itk::ImageSource<TOutputImage>::OutputImageType': must be a class or namespace when followed by '::' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 85
Error 36 error C2825: 'itk::ImageSource<TOutputImage>::OutputImageType': must be a class or namespace when followed by '::' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 86
Error 4 error C2825: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::InputImageType': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 98
Error 9 error C2825: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::InputImageType': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 99
Error 14 error C2825: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::InputImageType': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 100
Error 18 error C2825: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::InputImageType': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 101
Error 61 error C2825: 'TImage': must be a class or namespace when followed by '::' D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 53
Error 22 error C2825: 'TInputImage': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 104
Error 40 error C2825: 'TOutputImage': must be a class or namespace when followed by '::' D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 89
Error 55 error C2825: 'TOutputImage': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 106
Error 68 error C2825: 'TOutputImage': must be a class or namespace when followed by '::' d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 116
Error 54 error C2868: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::OutputImagePixelType' : illegal syntax for using-declaration; expected qualified-name d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 94
Error 49 error C2868: 'itk::ImageToImageFilter<TInputImage,TOutputImage>::OutputImageRegionType' : illegal syntax for using-declaration; expected qualified-name d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 93
Error 1 error C2923: 'itk::HessianToObjectnessMeasureImageFilter' : 'Dim' is not a valid template type argument for parameter 'TOutputImage' C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 36
Error 3 error C2955: 'itk::HessianToObjectnessMeasureImageFilter' : use of class template requires template argument list C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 38
Error 67 error C2955: 'itk::ImageAdaptor' : use of class template requires template argument list D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 61
Error 66 error C2955: 'itk::NthElementPixelAccessor' : use of class template requires template argument list D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 55
Error 79 error C2955: 'itk::PixelTraits' : use of class template requires template argument list d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 121
Error 2 error C3203: 'HessianToObjectnessMeasureImageFilter' : unspecialized class template can't be used as a template argument for template parameter 'THessianImage', expected a real type C:\Users\310084790\Documents\Visual Studio 2010\Projects\myNew\Yam\Yam.cpp 38
Error 65 error C3203: 'NthElementPixelAccessor' : unspecialized class template can't be used as a template argument for template parameter 'TAccessor', expected a real type D:\Projects\InsightToolkit-4.1.0\Modules\Core\ImageAdaptors\include\itkNthElementImageAdaptor.h 55
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 98
Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 99
Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 100
Error 21 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 101
Error 31 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 84
Error 35 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 85
Error 39 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\Projects\InsightToolkit-4.1.0\Modules\Core\Common\include\itkImageSource.h 86
Error 47 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 93
Error 52 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\core\common\include\itkImageToImageFilter.h 94
Error 72 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 116
Error 77 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\projects\insighttoolkit-4.1.0\modules\filtering\imagefeature\include\itkHessianRecursiveGaussianImageFilter.h 120
Thank you,
Yamini.D
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120829/eb168d21/attachment.htm>
More information about the Insight-users
mailing list