<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<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<BR><HR id="stopSpelling">CC: insight-users@itk.org<BR>From: ntustison@gmail.com<BR>Subject: Re: [Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)<BR>Date: Fri, 23 Oct 2009 08:12:31 -0400<BR>To: samuele_82@hotmail.com<BR><BR>

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>On Oct 23, 2009, at 7:40 AM, Samuele Dietler wrote:</DIV><BR class="ecxApple-interchange-newline"><BLOCKQUOTE><SPAN class="ecxApple-style-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 class="ecxhmmessage" style="font-size:10pt;font-family:Verdana">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( "Iteration " &lt;&lt; iteration &lt;&lt; ": "<BR>&lt;&lt; " convergence criterion = " &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 'ZERO_CHECK', configuration 'Debug|Win32'<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 "<A>file://c:\tk\N3CorrectionBin\ZERO_CHECK.dir\Debug\BuildLog.htm</A>"<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 'ImageCompare', configuration 'Debug|Win32'<BR>2&gt;Deleting intermediate and output files for project 'itkN3MRIBiasFieldCorrectionImageFilterTest', configuration 'Debug|Win32'<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 'ITKReview.lib'<BR>3&gt;Build log was saved at "<A>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</A>"<BR>3&gt;ImageCompare - 1 error(s), 0 warning(s)<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: 'vnl_math_floor': identifier not found<BR>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function 'itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SharpenImage(itk::SmartPointer&lt;TObjectType&gt;)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::N3MRIBiasFieldCorrectionImageFilter(void)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;' 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 'int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;2&gt;(int,char *[])' being compiled<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: 'vnl_math_floor': identifier not found<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter&lt;TInputPointSet,TOutputImage&gt;'<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 'itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SmoothField(itk::SmartPointer&lt;TObjectType&gt;)'<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: 'vnl_math_floor': identifier not found<BR>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function 'itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SharpenImage(itk::SmartPointer&lt;TObjectType&gt;)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::N3MRIBiasFieldCorrectionImageFilter(void)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;' 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 'int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;3&gt;(int,char *[])' being compiled<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: 'vnl_math_floor': identifier not found<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter&lt;TInputPointSet,TOutputImage&gt;'<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 'itk::SmartPointer&lt;TObjectType&gt; itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::SmoothField(itk::SmartPointer&lt;TObjectType&gt;)'<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 class="ecxApple-converted-space"> </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 class="ecxApple-converted-space"> </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 class="ecxApple-converted-space"> </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 class="ecxApple-converted-space"> </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 class="ecxApple-converted-space"> </SPAN><BR>2&gt;Build log was saved at "<A>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</A>"<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 class="ecxApple-converted-space"> </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'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 id="ecxstopSpelling">CC:<SPAN class="ecxApple-converted-space"> </SPAN><A href="mailto:insight-users@itk.org">insight-users@itk.org</A><BR>From:<SPAN class="ecxApple-converted-space"> </SPAN><A href="mailto:ntustison@gmail.com">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 class="ecxApple-converted-space"> </SPAN><A href="mailto:samuele_82@hotmail.com">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't realize until recently that there'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( "Iteration:  " &lt;&lt; iteration &lt;&lt; ":   Convergence threshold = " &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 class="ecxecxApple-interchange-newline"><BLOCKQUOTE><SPAN class="ecxecxApple-style-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 class="ecxecxhmmessage" 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: 'iteration' : undeclared identifier<BR>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::GenerateData(void)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;' 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 'int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;2&gt;(int,char *[])' being compiled<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'iteration' : undeclared identifier<BR>2&gt; c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;::GenerateData(void)'<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 'itk::N3MRIBiasFieldCorrectionImageFilter&lt;TInputImage,TMaskImage,TOutputImage&gt;' 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 'int itkN3MRIBiasFieldCorrectionImageFilterTest&lt;3&gt;(int,char *[])' being compiled<BR>2&gt;c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier<BR>2&gt;Build log was saved at "<A>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</A>"<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 'ITKReview.lib'<BR>1&gt;Build log was saved at "<A>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</A>"<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 class="ecxecxApple-converted-space"> </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">Resta aggiornato sulle attivitą dei tuoi amici su Flickr, Dada e MySpace</A>_____________________________________<BR>Powered by<SPAN class="ecxecxApple-converted-space"> </SPAN><A href="http://www.kitware.com">www.kitware.com</A><BR><BR>Visit other Kitware open-source projects at<BR><A href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please keep messages on-topic and check the ITK FAQ at:<SPAN class="ecxecxApple-converted-space"> </SPAN><A href="http://www.itk.org/Wiki/ITK_FAQ">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">http://www.itk.org/mailman/listinfo/insight-users</A><BR></DIV></SPAN></BLOCKQUOTE></DIV><BR><BR><HR>Doretta<SPAN class="ecxApple-converted-space"> </SPAN><A href="http://doretta82live.spaces.live.com/">Doretta ti "cerca"! Vieni a trovarla sul suo Spaces!</A><SPAN class="ecxApple-converted-space"> </SPAN>_____________________________________<BR>Powered by<SPAN class="ecxApple-converted-space"> </SPAN><A href="http://www.kitware.com">www.kitware.com</A><BR><BR>Visit other Kitware open-source projects at<BR><A href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please keep messages on-topic and check the ITK FAQ at:<SPAN class="ecxApple-converted-space"> </SPAN><A href="http://www.itk.org/Wiki/ITK_FAQ">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">http://www.itk.org/mailman/listinfo/insight-users</A><BR></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='_new'>sulle tue attivitą in linea.</a></body>
</html>