<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR><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 07:26:25 -0400<BR>To: samuele_82@hotmail.com<BR><BR>

<BASE><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="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 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="ecxApple-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="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>                                               <br /><hr />Windows Live Today: <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='_new'>Resta aggiornato sulle attivitą dei tuoi amici su Flickr, Dada e MySpace</a></body>
</html>