<div dir="ltr">I&#39;m not familiar with that editor so I&#39;m in no authoritative position to say whether or not it the Nsight Eclipse is the problem.<div><br></div><div>At this point, with two people unable to reproduce the problem, I&#39;d suggest trying the time-tested make tools to see if it will build. If it checks out fine using GNU make, then I&#39;d look hard at your project settings in Nsight Eclipse editor if you elect to continue to try to use that editor.</div>


<div class="gmail_extra"><br clear="all"><div><div dir="ltr">Ho Cheung<br><a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>Cell: <a href="tel:%28775%29%20388-2368" value="+17753882368" target="_blank">(775) 388-2368</a></div>

</div>
<br><br><div class="gmail_quote">On Wed, Aug 21, 2013 at 6:55 AM, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div>No, I am not... I am using Nsight Eclipse as editor. Could this be a problem?<br></div>I am running on the lattest update of Linux...<div><div><br><div><div class="gmail_extra"><br><br><div class="gmail_quote">


On 20 August 2013 22:05, Ho Cheung <span dir="ltr">&lt;<a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That code compiles for me on exactly the same platform as you have mentioned. Are you embedding this in a larger piece of code?<br>



<br>hocheung20@hocheung20-VirtualBox:~/ITK-RegionType/bin$ lsb_release -a<br>

No LSB modules are available.<br>Distributor ID:    Ubuntu<br>Description:    Ubuntu 12.04.2 LTS<br>Release:    12.04<br>Codename:    precise<br>hocheung20@hocheung20-VirtualBox:~/ITK-RegionType/bin$ gcc -v<br>Using built-in specs.<br>





COLLECT_GCC=gcc<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper<br>Target: x86_64-linux-gnu<br>Configured with: ../src/configure -v --with-pkgversion=&#39;Ubuntu/Linaro 4.6.3-1ubuntu5&#39; --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu<br>





Thread model: posix<br>gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) <br>hocheung20@hocheung20-VirtualBox:~/ITK-RegionType/bin$ make -j12<br>[100%] Built target itk_region_type<br>hocheung20@hocheung20-VirtualBox:~/ITK-RegionType/bin$ <br>



<span><font color="#888888">

<br></font></span></div><div class="gmail_extra"><span><font color="#888888"><br clear="all"><div><div dir="ltr">Ho Cheung<br><a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>
Cell: <a href="tel:%28775%29%20388-2368" value="+557753882368" target="_blank">(775) 388-2368</a></div></div></font></span><div><div>
<br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 7:30 AM, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr"><div><div><div>Hello,<br><br></div>Thank you for your reply!<br><br></div>I am using Linux (Ubuntu 12.04) and gcc version 4.6.3 and Insight Toolkit 4.2.1.<br><br></div>Thanks,<div><div><br><div class="gmail_extra">





<br>
<br><div class="gmail_quote">On 16 August 2013 17:57, Ho Cheung <span dir="ltr">&lt;<a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div style="word-wrap:break-word"><div>Hi Gabriel,</div><div><br></div>Could you describe your platform more?<div><br></div><div>Windows? Mac? Linux?</div><div>Compiler version(s)?</div><div><br></div><div>Thanks,</div><div>






<br></div><div><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">






<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">






<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">






<div>Ho Cheung</div><div><br></div></div></div></div></div><div><div><div><div>On Aug 16, 2013, at 3:29 PM, Gabriel Santiago &lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt; wrote:</div>






<br><blockquote type="cite"><div dir="ltr">Could be an ITK version problem? It doens&#39;t work for me no matter what I do!<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 August 2013 17:26, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Gabriel,<br><br>Your program compiles for me.<br><br></div>HTH,<br>Matt<br></div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 7:45 PM, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The weirdest thing is, if I replace the variables <b>desiredRegion.SetSize(size)</b> and<b> desiredRegion.SetIndex(start)</b> inside for<b> </b><b><b>desiredRegion.SetSize(</b>inputRegion.GetSize()</b>) and <b>desiredRegion.SetIndex(</b><b>inputRegion.GetIndex()</b>) respectively, it doesn&#39;t appear the error message and the program compiles just fine.<div>








<div><br>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 August 2013 16:32, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br>









<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Sorry, but where you read<div><br><br><div><b>typedef itk::Image&lt;InputAnalyzeImage, 3&gt; Image3D;<br>









</b></div><b>typedef itk::Image&lt;OutputJPGImage, 2&gt; Image2D;</b><br><br></div></div>
Please, read<br><br><div><b><span style="color:rgb(255,0,0)">typedef itk::Image&lt;InputImage, 3&gt; Image3D;</span><br></b></div><span style="color:rgb(255,0,0)"><b>typedef itk::Image&lt;OutputImage, 2&gt; Image2D;</b></span><br>










<br></div>and<div><br><br><b>typedef itk::ImageFileReader&lt;</b><b>Analyze3DImage&gt; Reader3D;<br>

typedef itk::ImageFileWriter&lt;</b><b>JPG2DImage&gt; Writer2D;<br><br></b></div></div>read<b><br></b><div><br><span style="color:rgb(255,0,0)"><b>typedef itk::ImageFileReader&lt;</b><b>Image3D&gt; Reader3D;<br>

typedef itk::ImageFileWriter&lt;Image2D</b><b>&gt; Writer2D;</b></span><br><br>Thanks,<div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 August 2013 16:26, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br>










<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br>Here it is:<br><b><br>// STD libraries:<br>#include &lt;iostream&gt;<br>#include &lt;string&gt;<br>










// ITK libraries:<br>#include &quot;itkImage.h&quot;<br>#include &quot;itkImageFileReader.h&quot;<br>
#include &quot;itkImageFileWriter.h&quot;<br>
#include &quot;itkExtractImageFilter.h&quot;<br>#include &quot;itkAnalyzeImageIO.h&quot;<br>#include &quot;itkOrientImageFilter.h&quot;<br>#include &quot;itkSize.h&quot;<br><br></b></div><b>// Type def.<br></b><div><b>typedef unsigned char InputImage;<br>












typedef unsigned char OutputImage;<br><br>// Image def.::<div><br>typedef itk::Image&lt;InputAnalyzeImage, 3&gt; Image3D;<br></div>typedef itk::Image&lt;OutputJPGImage, 2&gt; Image2D;<br><br>typedef itk::ImageFileReader&lt;</b><b>Analyze3DImage&gt; Reader3D;<br>












typedef itk::ImageFileWriter&lt;</b><b>JPG2DImage&gt; Writer2D;<br>typedef itk::ExtractImageFilter&lt;</b><b>Image3D, Image2D&gt; Filter3D;<br><br>Image2D::Pointer extract2DSlice(Image3D::</b><b>Pointer buffer, int plane, int slice)<br>











{<br>    Filter3D::Pointer filter = Filter3D::New();<br>
    Image3D::RegionType inputRegion = buffer-&gt;</b><b>GetLargestPossibleRegion();<div><br><br>    Image3D::SizeType size = inputRegion.GetSize();<br>    size[plane] = 0;<br>    Image3D::IndexType start = inputRegion.GetIndex();<br>












    const unsigned int sliceNumber = slice;<br>    start[plane] = sliceNumber;<br><br></div></b></div><div><b>    // The problem is HERE!<br></b></div><div><b><div>    Image3D::RegionType desiredRegion;<br>    desiredRegion.SetSize(size);<br>











    desiredRegion.SetIndex(start);<br>
<br></div>    filter-&gt;SetExtractionRegion(</b><b>desiredRegion);<br>    filter-&gt;SetInput(buffer);<br><br>    Image2D::Pointer img = filter-&gt;GetOutput();<br>    return img;<br>}</b><br></div><div><br></div></div>










<div class="gmail_extra"><div>
<br><br><div class="gmail_quote">On 16 August 2013 16:21, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">











<div dir="ltr">If you post a small, minimal example that with all includes, perhaps we can help.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Fri, Aug 16, 2013 at 3:17 PM, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span> wrote:<br>












</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div><div><div><div><div>Dear all,<br><br></div>I am trying to reproduce the example of page 118, of the itkSoftwareGuide, changing<br>












<br><i>typedef itk::ImageMaskSpatialObject&lt;3&gt; ImageMaskSpatialObject;</i><br>
<br></div>to<br><br><b>typedef itk::Image&lt;InputAnalyzeImage, 3&gt; Image3D;</b><br><br></div>I think it should work, but when I come to the following lines<br><br><b>    Image3D::SizeType size = inputRegion.GetSize();<br>













    size[plane] = 0;<br>    Image3D::IndexType start = inputRegion.GetIndex();<br>    const unsigned int sliceNumber = slice;<br>    start[plane] = sliceNumber;<br><br>    Image3D::RegionType desiredRegion;<br>    desiredRegion.SetSize(size);<br>













    desiredRegion.SetIndex(start);</b><br><br>I am getting the following error messages:<br><br></div><b>Invalid argumentes:<br></b></div><b>Candidates are:<br></b></div><b>void SetSize(const itk::Size&lt;&lt;unknown&gt;&gt;&amp;)  and<br>













void SetSize(unsigned long int, unsigned long int)<br><br><br>Invalid argumentes:<br>Candidates are:<br>void SetIndex(const itk::Index&lt;&lt;unknown&gt;&gt;&amp;)  and<br>void SetIndex(unsigned long int, unsigned long int)<br>













</b><div><br clear="all"><div><div>Can anyone, please, help me? I am using itk v4.2.<br></div><div>What is going on?<br><br></div><div>Thanks in advance,<span><font color="#888888"><br>
</font></span></div><span><font color="#888888"><br>-- <br>Gabriel Santiago<br>
<br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</font></span></div></div></div>
<br></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com/" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div><span><font color="#888888">-- <br>Gabriel Santiago<br>Engenheiro de Computação - Serviço de Informática/ Hospital das Clínicas de São Paulo<br><a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a><br>











Cel.: <a href="tel:%2B55%2011%2099801-0881" value="+5511998010881" target="_blank">+55 11 99801-0881</a></font></span><div><br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div></div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com/" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>






</blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div></div></div>
</blockquote></div><br></div></div>