<div>I don&#39;t know where you got that information but, unless I&#39;m missing something, you shouldn&#39;t need a particular version of ITK to run the itksnap binary.  It appears that those two remaining compilation errors are due to the fact that you&#39;re using an old version of ITK.  You should update to the latest stable version of itk to use N3.</div>

<div><br></div><div><br></div><div><br></div><div class="gmail_quote">On Fri, Oct 23, 2009 at 8:19 AM, Samuele Dietler <span dir="ltr">&lt;<a href="mailto:samuele_82@hotmail.com" target="_blank">samuele_82@hotmail.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>
<br>I use itk 3.8...because when i was looking to Itk-Snap the correct version for working with it was itk 3.8<div><br><hr>CC: <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
From: <a href="mailto:ntustison@gmail.com" target="_blank">ntustison@gmail.com</a><br>Subject: Re: [Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)<br></div>Date: Fri, 23 Oct 2009 08:12:31 -0400<div>


<br>To: <a href="mailto:samuele_82@hotmail.com" target="_blank">samuele_82@hotmail.com</a><br><br></div>

It looks like there might be something else wrong besides the N3 code.  What version of ITK are you using?<div><br></div><div><br></div><div><br><div><div><div></div><div><div>On Oct 23, 2009, at 7:40 AM, Samuele Dietler wrote:</div>


<br></div></div><blockquote><span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-size:10pt;font-family:Verdana">


<div><div></div><div>Hello,<br>thank you, i was looking at your code and try some experiment for make it working...The line is :<br><br><br>itkDebugMacro( &quot;Iteration &quot; &lt;&lt; iteration &lt;&lt; &quot;: &quot;<br>


&lt;&lt; &quot; convergence criterion = &quot; &lt;&lt; cv );<br><br><br><br>But there i have still some errors...This is the list :<br>1&gt;------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<br>


1&gt;Deleting intermediate and output files for project &#39;ZERO_CHECK&#39;, configuration &#39;Debug|Win32&#39;<br>1&gt;Checking Build System<br>1&gt;CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.<br>


1&gt;Build log was saved at &quot;<a>file://c:\tk\N3CorrectionBin\ZERO_CHECK.dir\Debug\BuildLog.htm</a>&quot;<br>1&gt;ZERO_CHECK - 0 error(s), 0 warning(s)<br>2&gt;------ Rebuild All started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------<br>


3&gt;------ Rebuild All started: Project: ImageCompare, Configuration: Debug Win32 ------<br>3&gt;Deleting intermediate and output files for project &#39;ImageCompare&#39;, configuration &#39;Debug|Win32&#39;<br>2&gt;Deleting intermediate and output files for project &#39;itkN3MRIBiasFieldCorrectionImageFilterTest&#39;, configuration &#39;Debug|Win32&#39;<br>


2&gt;Building Custom Rule C:/tk/N3Correction/CMakeLists.txt<br>3&gt;Building Custom Rule C:/tk/N3Correction/CMakeLists.txt<br>2&gt;CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.<br>2&gt;Compiling...<br>


3&gt;CMake is re-running because build system is out-of-date.<br>3&gt;-- Configuring done<br>2&gt;itkN3MRIBiasFieldCorrectionImageFilterTest.cxx<br>3&gt;-- Generating done<br>3&gt;-- Build files have been written to: C:/tk/N3CorrectionBin<br>


3&gt;Compiling...<br>3&gt;ImageCompare.cxx<br>3&gt;Compiling manifest to resources...<br>3&gt;Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<br>3&gt;Copyright (C) Microsoft Corporation. All rights reserved.<br>


3&gt;Linking...<br>3&gt;LINK : fatal error LNK1104: cannot open file &#39;ITKReview.lib&#39;<br>3&gt;Build log was saved at &quot;<a>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</a>&quot;<br>3&gt;ImageCompare - 1 error(s), 0 warning(s)<br>


2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: &#39;vnl_math_floor&#39;: identifier not found<br>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function &#39;itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SharpenImage(itk::SmartPointer&lt;TObjectType&gt;)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TObjectType=itk::Image&lt;RealType,2&gt;,<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::N3MRIBiasFieldCorrectionImageFilter(void)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;&#39; being compiled<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(217) : see reference to function template instantiation &#39;int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;2&gt;(int,char *[])&#39; being compiled<br>


2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: &#39;vnl_math_floor&#39;: identifier not found<br>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: &#39;SetDirection&#39; : is not a member of &#39;itk::BSplineScatteredDataPointSetToImageFilter&lt;TInputPointSet,TOutputImage&gt;&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputPointSet=itk::PointSet&lt;itk::N3MRIBiasFieldCorrectionImageFilter&lt;ImageType,MaskImageType,ImageType&gt;::ScalarType,2&gt;,<br>2&gt; TOutputImage=itk::Image&lt;itk::N3MRIBiasFieldCorrectionImageFilter&lt;ImageType,MaskImageType,ImageType&gt;::ScalarType,2&gt;<br>


2&gt; ]<br>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(391) : while compiling class template member function &#39;itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SmoothField(itk::SmartPointer&lt;TObjectType&gt;)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TObjectType=itk::Image&lt;RealType,2&gt;,<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: &#39;vnl_math_floor&#39;: identifier not found<br>


2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function &#39;itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SharpenImage(itk::SmartPointer&lt;TObjectType&gt;)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TObjectType=itk::Image&lt;RealType,3&gt;,<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::N3MRIBiasFieldCorrectionImageFilter(void)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;&#39; being compiled<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(220) : see reference to function template instantiation &#39;int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;3&gt;(int,char *[])&#39; being compiled<br>


2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: &#39;vnl_math_floor&#39;: identifier not found<br>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: &#39;SetDirection&#39; : is not a member of &#39;itk::BSplineScatteredDataPointSetToImageFilter&lt;TInputPointSet,TOutputImage&gt;&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputPointSet=itk::PointSet&lt;itk::N3MRIBiasFieldCorrectionImageFilter&lt;ImageType,MaskImageType,ImageType&gt;::ScalarType,3&gt;,<br>2&gt; TOutputImage=itk::Image&lt;itk::N3MRIBiasFieldCorrectionImageFilter&lt;ImageType,MaskImageType,ImageType&gt;::ScalarType,3&gt;<br>


2&gt; ]<br>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(391) : while compiling class template member function &#39;itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SmoothField(itk::SmartPointer&lt;TObjectType&gt;)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TObjectType=itk::Image&lt;RealType,3&gt;,<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>4&gt;------ Skipped Rebuild All: Project: NightlyMemoryCheck, Configuration: Debug Win32 ------<br>


4&gt;Project not selected to build for this solution configuration<span> </span><br>5&gt;------ Skipped Rebuild All: Project: Nightly, Configuration: Debug Win32 ------<br>5&gt;Project not selected to build for this solution configuration<span> </span><br>


6&gt;------ Skipped Rebuild All: Project: RUN_TESTS, Configuration: Debug Win32 ------<br>6&gt;Project not selected to build for this solution configuration<span> </span><br>7&gt;------ Skipped Rebuild All: Project: Experimental, Configuration: Debug Win32 ------<br>


7&gt;Project not selected to build for this solution configuration<span> </span><br>8&gt;------ Skipped Rebuild All: Project: Continuous, Configuration: Debug Win32 ------<br>8&gt;Project not selected to build for this solution configuration<span> </span><br>


2&gt;Build log was saved at &quot;<a>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</a>&quot;<br>2&gt;itkN3MRIBiasFieldCorrectionImageFilterTest - 6 error(s), 0 warning(s)<br>


9&gt;------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Debug Win32 ------<br>9&gt;Project not selected to build for this solution configuration<span> </span><br>========== Rebuild All: 1 succeeded, 2 failed, 6 skipped ==========<br>


<br><br><br><br><br>Maybe i will wait until today late so that you can correct...because for the moment i&#39;m not an expert and i can correct only my simple code and not codes so complex... <br>Thank you<br>Samuele<br>

<br>
<br><hr>CC:<span> </span><a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>From:<span> </span><a href="mailto:ntustison@gmail.com" target="_blank">ntustison@gmail.com</a><br>Subject: Re: [Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)<br>


Date: Fri, 23 Oct 2009 07:26:25 -0400<br>To:<span> </span><a href="mailto:samuele_82@hotmail.com" target="_blank">samuele_82@hotmail.com</a><br><br><div>Hi Samuele,</div><div><br></div><div>I need to fix the recent code revision---I made some changes such as adding a progress reporter and I didn&#39;t realize until recently that there&#39;s a bug.  Anyway, you can wait until later today when I upload a corrected version or you can find the line in the .txx file, in the function GenerateData(), that reads something like </div>


<div><br></div><div>itkDebugMacro( &quot;Iteration:  &quot; &lt;&lt; iteration &lt;&lt; &quot;:   Convergence threshold = &quot; &lt;&lt; convergence )</div><div><br></div><div>and just delete it.  That should correct the problem.</div>


<div><br></div><div>Nick</div><div><br></div><br><div><div>On Oct 23, 2009, at 5:42 AM, Samuele Dietler wrote:</div><br><blockquote><span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-size:10pt;font-family:Verdana">


Hello itk users,<br>i have a problem with the following library : itkN3MRIBiasFieldCorrectionImageFilter(taken by insight journal). I compile it in visual studio 9 with itk3.8. The first time that i compiled it i had a problem with review option of itk, so i turned on review and i recompiled itk. After i have recompiled itkN3MRIBiasFieldCorrectionImageFilter but this time the following list of errors appear :<br>


<br><br>1&gt;------ Build started: Project: ImageCompare, Configuration: Debug Win32 ------<br>2&gt;------ Build started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------<br>2&gt;Compiling...<br>


1&gt;Compiling...<br>1&gt;ImageCompare.cxx<br>2&gt;itkN3MRIBiasFieldCorrectionImageFilterTest.cxx<br>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: &#39;iteration&#39; : undeclared identifier<br>


2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function &#39;void itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::GenerateData(void)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;&#39; being compiled<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(217) : see reference to function template instantiation &#39;int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;2&gt;(int,char *[])&#39; being compiled<br>


2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: &#39;cv&#39; : undeclared identifier<br>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: &#39;iteration&#39; : undeclared identifier<br>


2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function &#39;void itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::GenerateData(void)&#39;<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation &#39;itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;&#39; being compiled<br>


2&gt; with<br>2&gt; [<br>2&gt; TInputImage=ImageType,<br>2&gt; TMaskImage=MaskImageType,<br>2&gt; TOutputImage=ImageType<br>2&gt; ]<br>2&gt; ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(220) : see reference to function template instantiation &#39;int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;3&gt;(int,char *[])&#39; being compiled<br>


2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: &#39;cv&#39; : undeclared identifier<br>2&gt;Build log was saved at &quot;<a>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</a>&quot;<br>


2&gt;itkN3MRIBiasFieldCorrectionImageFilterTest - 4 error(s), 0 warning(s)<br>1&gt;Compiling manifest to resources...<br>1&gt;Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<br>1&gt;Copyright (C) Microsoft Corporation. All rights reserved.<br>


1&gt;Linking...<br>1&gt;LINK : fatal error LNK1104: cannot open file &#39;ITKReview.lib&#39;<br>1&gt;Build log was saved at &quot;<a>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</a>&quot;<br>1&gt;ImageCompare - 1 error(s), 0 warning(s)<br>


========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========<br><br><br>Does anyone know hot to solve the problem?? <br><br><br>Thank you, bests<br>Samuele<br><br><br><br><hr>Windows Live Today:<span> </span><a href="http://www.microsoft.com/italy/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:it-it:SI_SB_3:092009" target="_blank">Resta aggiornato sulle attività dei tuoi amici su Flickr, Dada e MySpace</a>_____________________________________<br>


Powered by<span> </span><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>Please keep messages on-topic and check the ITK FAQ at:<span> </span><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>
</div></span></blockquote></div><br><br><hr></div></div>Doretta<span> </span><a href="http://doretta82live.spaces.live.com/" target="_blank">Doretta ti &quot;cerca&quot;! Vieni a trovarla sul suo Spaces!</a><span> </span>_____________________________________<div>


<br>Powered by<span> </span><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>Please keep messages on-topic and check the ITK FAQ at:<span> </span><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>
</div></div></span></blockquote></div><br></div>                                               <br><hr>Windows Live: tieni aggiornati i tuoi amici <a href="http://www.microsoft.com/italy/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:it-it:SI_SB_1:092009" target="_blank">sulle tue attività in linea.</a></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>
Please keep messages on-topic and check the ITK FAQ at: <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>