<div dir="ltr">Have you tried with a radius of 3 instead of 1?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-30 8:26 GMT+02:00 vis <span dir="ltr"><<a href="mailto:itkhelpacc@gmail.com" target="_blank">itkhelpacc@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hey Matt,<br>
thanks for ur advice.. it did build successfully... but im not able to run<br>
the code for 2D png image... i tried to change the dimension to 2 and build<br>
it which it did.. but when i run the code using the command<br>
line itkTextureFeatureImageFilterTest.exe cthead.png putput.png 1... i see<br>
this output<br>
<br>
offset: [-1, -1] [0, -1]<br>
offset: [0, -1] [1, -1]<br>
offset: [-1, 0] [0, 0]<br>
offset: [0, 0] [1, 0]<br>
offset: [-1, 1] [0, 1]<br>
offset: [0, 1] [1, 1] and it asks for abort the program... if pls tel me<br>
how can i modify this code to work wid 2d image... forgive me if my ques<br>
are really silly im trying to learn something..<br>
regards<br>
Vis<br>
<span class=""><br>
On Wed, Sep 30, 2015 at 2:56 AM, Matt McCormick-2 [via ITK Insight Users] <<br>
<a href="mailto:ml-node%2Bs2283740n7587952h68@n2.nabble.com">ml-node+s2283740n7587952h68@n2.nabble.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> The function:<br>
><br>
>   itkTextureFeatureImageFilterTest(int argc, char *argv[])<br>
><br>
> must be renamed to<br>
><br>
>   main(int argc, char* argv[])<br>
><br>
> HTH,<br>
> Matt<br>
><br>
</span><div><div class="h5">> On Tue, Sep 29, 2015 at 6:08 AM, vis <[hidden email]<br>
> <http:///user/SendEmail.jtp?type=node&node=7587952&i=0>> wrote:<br>
><br>
> > hi all,<br>
> > im trying to build the itkTextureFeatureImageFilterTest.cxx code but im<br>
> not<br>
> > able to it is showing the following error<br>
> > 1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug<br>
> x64<br>
> > ------<br>
> > 1>  Checking Build System<br>
> > 1>  CMake does not need to re-run because<br>
> > D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/CMakeFiles/generate.stamp<br>
> is<br>
> > up-to-date.<br>
> > 2>------ Rebuild All started: Project: itkTextureFeatureImageFilterTest,<br>
> > Configuration: Debug x64 ------<br>
> > 2>  Building Custom Rule<br>
> > D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/CMakeLists.txt<br>
> > 2>  CMake does not need to re-run because<br>
> > D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\CMakeFiles\generate.stamp<br>
> is<br>
> > up-to-date.<br>
> > 2>  itkTextureFeatureImageFilterTest.cxx<br>
> > 2>C:\Program Files (x86)\Microsoft Visual Studio<br>
> > 11.0\VC\include\xutility(2176): warning C4996: 'std::_Copy_impl':<br>
> Function<br>
> > call with parameters that may be unsafe - this call relies on the caller<br>
> to<br>
> > check that the passed values are correct. To disable this warning, use<br>
> > -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++<br>
> > 'Checked Iterators'<br>
> > 2>          C:\Program Files (x86)\Microsoft Visual Studio<br>
> > 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'<br>
> > 2><br>
> > c:\itk\source\modules\io\imagebase\include\itkImageFileReader.hxx(439) :<br>
> see<br>
> > reference to function template instantiation '_OutIt std::copy<const<br>
> > unsigned char*,unsigned char*>(_InIt,_InIt,_OutIt)' being compiled<br>
> > 2>          with<br>
> > 2>          [<br>
> > 2>              _OutIt=unsigned char *,<br>
> > 2>              _InIt=const unsigned char *<br>
> > 2>          ]<br>
> > 2><br>
> > c:\itk\source\modules\io\imagebase\include\itkImageFileReader.hxx(353) :<br>
> > while compiling class template member function 'void<br>
> > itk::ImageFileReader<TOutputImage>::GenerateData(void)'<br>
> > 2>          with<br>
> > 2>          [<br>
> > 2>              TOutputImage=InputImageType<br>
> > 2>          ]<br>
> > 2><br>
> ><br>
> D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\itkTextureFeatureImageFilterTest.cxx(47)<br>
><br>
> > : see reference to class template instantiation<br>
> > 'itk::ImageFileReader<TOutputImage>' being compiled<br>
> > 2>          with<br>
> > 2>          [<br>
> > 2>              TOutputImage=InputImageType<br>
> > 2>          ]<br>
> > 2>          C:\Program Files (x86)\Microsoft Visual Studio<br>
> > 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'<br>
> > 2>          C:\Program Files (x86)\Microsoft Visual Studio<br>
> > 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'<br>
> > 2>          C:\Program Files (x86)\Microsoft Visual Studio<br>
> > 11.0\VC\include\xutility(2157) : see declaration of 'std::_Copy_impl'<br>
> > 2>     Creating library<br>
> ><br>
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/Debug/itkTextureFeatureImageFilterTest.lib<br>
><br>
> > and object<br>
> ><br>
> D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/bin/Debug/itkTextureFeatureImageFilterTest.exp<br>
><br>
> > 2>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol<br>
> main<br>
> > referenced in function __tmainCRTStartup<br>
> ><br>
> 2>D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\Debug\itkTextureFeatureImageFilterTest.exe<br>
><br>
> > : fatal error LNK1120: 1 unresolved externals<br>
> > 3>------ Rebuild All started: Project: ALL_BUILD, Configuration: Debug<br>
> x64<br>
> > ------<br>
> > 3>  Building Custom Rule<br>
> > D:/ITK_VTK_EX/My_ITK_Ex/seg/Texture/test/CMakeLists.txt<br>
> > 3>  CMake does not need to re-run because<br>
> > D:\ITK_VTK_EX\My_ITK_Ex\seg\Texture\test\bin\CMakeFiles\generate.stamp<br>
> is<br>
> > up-to-date.<br>
> > ========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========<br>
> > im using the follwing CMakeList.txt<br>
> > # This is the root ITK CMakeLists file.<br>
> > cmake_minimum_required(VERSION 2.4)<br>
> > if(COMMAND CMAKE_POLICY)<br>
> >   cmake_policy(SET CMP0003 NEW)<br>
> > endif()<br>
> ><br>
> ><br>
> > # This project is designed to be built outside the Insight source tree.<br>
> > project(HelloWorld)<br>
> ><br>
> > # Find ITK.<br>
> > find_package(ITK REQUIRED)<br>
> > include(${ITK_USE_FILE})<br>
> ><br>
> > add_executable(itkTextureFeatureImageFilterTest<br>
> > itkTextureFeatureImageFilterTest.cxx )<br>
> ><br>
> > target_link_libraries(itkTextureFeatureImageFilterTest ${ITK_LIBRARIES})<br>
> ><br>
> > please tel me wat the error is??<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > View this message in context:<br>
> <a href="http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587935.html" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587935.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>
> _____________________________________<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>
><br>
><br>
</div></div>> ------------------------------<br>
> If you reply to this email, your message will be added to the discussion<br>
> below:<br>
><br>
> <a href="http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587952.html" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587952.html</a><br>
> To unsubscribe from [ITK-users] Texture pixel by pixel, click here<br>
> <<a href="http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7587867&code=aXRraGVscGFjY0BnbWFpbC5jb218NzU4Nzg2N3wzNzEzNjYzNzk=" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7587867&code=aXRraGVscGFjY0BnbWFpbC5jb218NzU4Nzg2N3wzNzEzNjYzNzk=</a>><br>
> .<br>
> NAML<br>
> <<a href="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" rel="noreferrer" target="_blank">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</a>><br>
><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587960.html" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Texture-pixel-by-pixel-tp7587867p7587960.html</a><br>
<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>