[ITK] [ITK-users] Texture pixel by pixel

Matt McCormick matt.mccormick at kitware.com
Tue Sep 29 17:26:11 EDT 2015


Hi,

The function:

  itkTextureFeatureImageFilterTest(int argc, char *argv[])

must be renamed to

  main(int argc, char* argv[])

HTH,
Matt

On Tue, Sep 29, 2015 at 6:08 AM, vis <itkhelpacc at gmail.com> wrote:
> hi all,
> im trying to build the itkTextureFeatureImageFilterTest.cxx code but im not
> able to it is showing the following error
> 1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64
> ------
> 1>  Checking Build System
> 1>  CMake does not need to re-run because
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/CMakeFiles/generate.stamp is
> up-to-date.
> 2>------ Rebuild All started: Project: itkTextureFeatureImageFilterTest,
> Configuration: Debug x64 ------
> 2>  Building Custom Rule
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/CMakeLists.txt
> 2>  CMake does not need to re-run because
> D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\CMakeFiles\generate.stamp is
> up-to-date.
> 2>  itkTextureFeatureImageFilterTest.cxx
> 2>C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\xutility(2176): warning C4996: 'std::_Copy_impl': Function
> call with parameters that may be unsafe - this call relies on the caller to
> check that the passed values are correct. To disable this warning, use
> -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
> 'Checked Iterators'
> 2>          C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'
> 2>
> c:\itk\source\modules\io\imagebase\include\itkImageFileReader.hxx(439) : see
> reference to function template instantiation '_OutIt std::copy<const
> unsigned char*,unsigned char*>(_InIt,_InIt,_OutIt)' being compiled
> 2>          with
> 2>          [
> 2>              _OutIt=unsigned char *,
> 2>              _InIt=const unsigned char *
> 2>          ]
> 2>
> c:\itk\source\modules\io\imagebase\include\itkImageFileReader.hxx(353) :
> while compiling class template member function 'void
> itk::ImageFileReader<TOutputImage>::GenerateData(void)'
> 2>          with
> 2>          [
> 2>              TOutputImage=InputImageType
> 2>          ]
> 2>
> D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\itkTextureFeatureImageFilterTest.cxx(47)
> : see reference to class template instantiation
> 'itk::ImageFileReader<TOutputImage>' being compiled
> 2>          with
> 2>          [
> 2>              TOutputImage=InputImageType
> 2>          ]
> 2>          C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'
> 2>          C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'
> 2>          C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'
> 2>     Creating library
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/Debug/itkTextureFeatureImageFilterTest.lib
> and object
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/Debug/itkTextureFeatureImageFilterTest.exp
> 2>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol main
> referenced in function __tmainCRTStartup
> 2>D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\Debug\itkTextureFeatureImageFilterTest.exe
> : fatal error LNK1120: 1 unresolved externals
> 3>------ Rebuild All started: Project: ALL_BUILD, Configuration: Debug x64
> ------
> 3>  Building Custom Rule
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/CMakeLists.txt
> 3>  CMake does not need to re-run because
> D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\CMakeFiles\generate.stamp is
> up-to-date.
> ========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========
> im using the follwing CMakeList.txt
> # This is the root ITK CMakeLists file.
> cmake_minimum_required(VERSION 2.4)
> if(COMMAND CMAKE_POLICY)
>   cmake_policy(SET CMP0003 NEW)
> endif()
>
>
> # This project is designed to be built outside the Insight source tree.
> project(HelloWorld)
>
> # Find ITK.
> find_package(ITK REQUIRED)
> include(${ITK_USE_FILE})
>
> add_executable(itkTextureFeatureImageFilterTest
> itkTextureFeatureImageFilterTest.cxx )
>
> target_link_libraries(itkTextureFeatureImageFilterTest ${ITK_LIBRARIES})
>
> please tel me wat the error is??
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587935.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
_____________________________________
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