[ITK] [ITK-users] Local texture Features

Pol Monsó Purtí lluna.nova at gmail.com
Wed Sep 30 06:21:17 EDT 2015


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:

https://github.com/ITKTools/ITKTools/commit/84ed056b6ea335bc825e6a3ad9d128498a1217eb

On Wed, Sep 30, 2015 at 11:52 AM, vis <itkhelpacc at gmail.com> wrote:

> hi,
> i tried building itkScalarToFractalImageFilterTest.cxx but it is showing
> the
> following error.. pls advice
> regards
> vis
>
> 1>------ Build started: Project: itkScalarToFractalImageFilterTest,
> Configuration: Debug x64 ------
> 1>  itkScalarToFractalImageFilterTest.cxx
>
> 1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):
> error C2039: 'GetImageDimension' : is not a member of 'itk'
> 1>
>
> D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(239)
> : see reference to function template instantiation 'int
> itkScalarToFractalImageFilterTest<2>(int,char *[])' being compiled
>
> 1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):
> error C2065: 'GetImageDimension' : undeclared identifier
>
> 1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):
> error C2275: 'TInputImage' : illegal use of this type as an expression
> 1>
>
> D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149)
> : see declaration of 'TInputImage'
>
> 1>d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(29):
> error C2974: 'itk::ScalarToFractalImageFilter' : invalid template argument
> for 'TMaskImage', type expected
> 1>
>
> d:\itk_vtk_ex\my_itk_ex\seg\entropyconversion\source\h\itkScalarToFractalImageFilter.h(32)
> : see declaration of 'itk::ScalarToFractalImageFilter'
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149):
> warning C4091: 'typedef ' : ignored on left of
> 'itk::ScalarToFractalImageFilter<TInputImage>' when no variable is declared
> 1>          with
> 1>          [
> 1>              TInputImage=ImageType
> 1>          ]
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(149):
> error C2143: syntax error : missing ';' before '>'
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):
> error C2653: 'FractalFilterType' : is not a class or namespace name
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):
> error C2065: 'Pointer' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):
> error C2146: syntax error : missing ';' before identifier 'fractal'
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):
> error C2065: 'fractal' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(150):
> error C3861: 'New': identifier not found
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(151):
> error C2065: 'fractal' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(151):
> error C2227: left of '->SetInput' must point to class/struct/union/generic
> type
> 1>          type is ''unknown-type''
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):
> error C2653: 'FractalFilterType' : is not a class or namespace name
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):
> error C2065: 'RadiusType' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):
> error C2146: syntax error : missing ';' before identifier 'radius'
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(155):
> error C2065: 'radius' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(156):
> error C2065: 'radius' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(156):
> error C2228: left of '.Fill' must have class/struct/union
> 1>          type is ''unknown-type''
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):
> error C2065: 'fractal' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):
> error C2227: left of '->SetNeighborhoodRadius' must point to
> class/struct/union/generic type
> 1>          type is ''unknown-type''
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(157):
> error C2065: 'radius' : undeclared identifier
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):
> error C2653: 'FractalFilterType' : is not a class or namespace name
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):
> error C2146: syntax error : missing ';' before identifier 'MaskImageType'
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
>
> 1>D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(171):
> warning C4091: '' : ignored on left of 'int' when no variable is declared
>
> 1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):
> error C2825: 'TOutputImage': must be a class or namespace when followed by
> '::'
> 1>
>
> D:\ITK_VTK_EX\My_ITK_Ex\seg\EntropyConversion\Source\itkScalarToFractalImageFilterTest.cxx(175)
> : see reference to class template instantiation
> 'itk::BinaryThresholdImageFilter<TInputImage,TOutputImage>' being compiled
> 1>          with
> 1>          [
> 1>              TInputImage=ImageType,
> 1>              TOutputImage=MaskImageType
> 1>          ]
>
> 1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):
> error C2039: 'PixelType' : is not a member of '`global namespace''
>
> 1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):
> error C2146: syntax error : missing ',' before identifier 'PixelType'
>
> 1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):
> error C2065: 'PixelType' : undeclared identifier
>
> 1>c:\itk\source\modules\filtering\thresholding\include\itkBinaryThresholdImageFilter.h(128):
> error C3203: 'BinaryThreshold' : unspecialized class template can't be used
> as a template argument for template parameter 'TFunction', expected a real
> type
>
>
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Local-Texture-Features-tp6311109p7587966.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150930/5945898f/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list