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

vis itkhelpacc at gmail.com
Wed Sep 30 02:26:28 EDT 2015


hey Matt,
thanks for ur advice.. it did build successfully... but im not able to run
the code for 2D png image... i tried to change the dimension to 2 and build
it which it did.. but when i run the code using the command
line itkTextureFeatureImageFilterTest.exe cthead.png putput.png 1... i see
this output

offset: [-1, -1] [0, -1]
offset: [0, -1] [1, -1]
offset: [-1, 0] [0, 0]
offset: [0, 0] [1, 0]
offset: [-1, 1] [0, 1]
offset: [0, 1] [1, 1] and it asks for abort the program... if pls tel me
how can i modify this code to work wid 2d image... forgive me if my ques
are really silly im trying to learn something..
regards
Vis

On Wed, Sep 30, 2015 at 2:56 AM, Matt McCormick-2 [via ITK Insight Users] <
ml-node+s2283740n7587952h68 at n2.nabble.com> wrote:

> 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 <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=7587952&i=0>> 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
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587952.html
> To unsubscribe from [ITK-users] Texture pixel by pixel, click here
> <http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7587867&code=aXRraGVscGFjY0BnbWFpbC5jb218NzU4Nzg2N3wzNzEzNjYzNzk=>
> .
> NAML
> <http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587960.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


More information about the Community mailing list