<div dir="ltr">You're using a mismatching itk version. I believe GetImageDimension was renamed to something else after itkv3. Here is an example of what you have to change to link to newer ITK versions:<br><br><a href="https://github.com/ITKTools/ITKTools/commit/84ed056b6ea335bc825e6a3ad9d128498a1217eb">https://github.com/ITKTools/ITKTools/commit/84ed056b6ea335bc825e6a3ad9d128498a1217eb</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 30, 2015 at 11:52 AM, vis <span dir="ltr"><<a href="mailto:itkhelpacc@gmail.com" target="_blank">itkhelpacc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
i tried building itkScalarToFractalImageFilterTest.cxx but it is showing the<br>
following error.. pls advice<br>
regards<br>
vis<br>
<br>
1>------ Build started: Project: itkScalarToFractalImageFilterTest,<br>
Configuration: Debug x64 ------<br>
1> itkScalarToFractalImageFilterTest.cxx<br>
1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):<br>
error C2039: 'GetImageDimension' : is not a member of 'itk'<br>
1><br>
D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(239)<br>
: see reference to function template instantiation 'int<br>
itkScalarToFractalImageFilterTest<2>(int,char *[])' being compiled<br>
1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):<br>
error C2065: 'GetImageDimension' : undeclared identifier<br>
1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):<br>
error C2275: 'TInputImage' : illegal use of this type as an expression<br>
1><br>
D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149)<br>
: see declaration of 'TInputImage'<br>
1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):<br>
error C2974: 'itk::ScalarToFractalImageFilter' : invalid template argument<br>
for 'TMaskImage', type expected<br>
1><br>
d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(32)<br>
: see declaration of 'itk::ScalarToFractalImageFilter'<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149):<br>
warning C4091: 'typedef ' : ignored on left of<br>
'itk::ScalarToFractalImageFilter<TInputImage>' when no variable is declared<br>
1> with<br>
1> [<br>
1> TInputImage=ImageType<br>
1> ]<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149):<br>
error C2143: syntax error : missing ';' before '>'<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):<br>
error C2653: 'FractalFilterType' : is not a class or namespace name<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):<br>
error C2065: 'Pointer' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):<br>
error C2146: syntax error : missing ';' before identifier 'fractal'<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):<br>
error C2065: 'fractal' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):<br>
error C3861: 'New': identifier not found<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(151):<br>
error C2065: 'fractal' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(151):<br>
error C2227: left of '->SetInput' must point to class/struct/union/generic<br>
type<br>
1> type is ''unknown-type''<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):<br>
error C2653: 'FractalFilterType' : is not a class or namespace name<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):<br>
error C2065: 'RadiusType' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):<br>
error C2146: syntax error : missing ';' before identifier 'radius'<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):<br>
error C2065: 'radius' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(156):<br>
error C2065: 'radius' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(156):<br>
error C2228: left of '.Fill' must have class/struct/union<br>
1> type is ''unknown-type''<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):<br>
error C2065: 'fractal' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):<br>
error C2227: left of '->SetNeighborhoodRadius' must point to<br>
class/struct/union/generic type<br>
1> type is ''unknown-type''<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):<br>
error C2065: 'radius' : undeclared identifier<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):<br>
error C2653: 'FractalFilterType' : is not a class or namespace name<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):<br>
error C2146: syntax error : missing ';' before identifier 'MaskImageType'<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):<br>
error C4430: missing type specifier - int assumed. Note: C++ does not<br>
support default-int<br>
1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):<br>
warning C4091: '' : ignored on left of 'int' when no variable is declared<br>
1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):<br>
error C2825: 'TOutputImage': must be a class or namespace when followed by<br>
'::'<br>
1><br>
D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(175)<br>
: see reference to class template instantiation<br>
'itk::BinaryThresholdImageFilter<TInputImage,TOutputImage>' being compiled<br>
1> with<br>
1> [<br>
1> TInputImage=ImageType,<br>
1> TOutputImage=MaskImageType<br>
1> ]<br>
1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):<br>
error C2039: 'PixelType' : is not a member of '`global namespace''<br>
1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):<br>
error C2146: syntax error : missing ',' before identifier 'PixelType'<br>
1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):<br>
error C2065: 'PixelType' : undeclared identifier<br>
1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):<br>
error C3203: 'BinaryThreshold' : unspecialized class template can't be used<br>
as a template argument for template parameter 'TFunction', expected a real<br>
type<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Local-Texture-Features-tp6311109p7587966.html" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Local-Texture-Features-tp6311109p7587966.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>