<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 " << iteration << ": "<BR><< " convergence criterion = " << cv );<BR><BR><BR><BR>But there i have still some errors...This is the list :<BR>1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<BR>1>Deleting intermediate and output files for project 'ZERO_CHECK', configuration 'Debug|Win32'<BR>1>Checking Build System<BR>1>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.<BR>1>Build log was saved at "<A>file://c:\tk\N3CorrectionBin\ZERO_CHECK.dir\Debug\BuildLog.htm</A>"<BR>1>ZERO_CHECK - 0 error(s), 0 warning(s)<BR>2>------ Rebuild All started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------<BR>3>------ Rebuild All started: Project: ImageCompare, Configuration: Debug Win32 ------<BR>3>Deleting intermediate and output files for project 'ImageCompare', configuration 'Debug|Win32'<BR>2>Deleting intermediate and output files for project 'itkN3MRIBiasFieldCorrectionImageFilterTest', configuration 'Debug|Win32'<BR>2>Building Custom Rule C:/tk/N3Correction/CMakeLists.txt<BR>3>Building Custom Rule C:/tk/N3Correction/CMakeLists.txt<BR>2>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.<BR>2>Compiling...<BR>3>CMake is re-running because build system is out-of-date.<BR>3>-- Configuring done<BR>2>itkN3MRIBiasFieldCorrectionImageFilterTest.cxx<BR>3>-- Generating done<BR>3>-- Build files have been written to: C:/tk/N3CorrectionBin<BR>3>Compiling...<BR>3>ImageCompare.cxx<BR>3>Compiling manifest to resources...<BR>3>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<BR>3>Copyright (C) Microsoft Corporation. All rights reserved.<BR>3>Linking...<BR>3>LINK : fatal error LNK1104: cannot open file 'ITKReview.lib'<BR>3>Build log was saved at "<A>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</A>"<BR>3>ImageCompare - 1 error(s), 0 warning(s)<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: 'vnl_math_floor': identifier not found<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function 'itk::SmartPointer<TObjectType> itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::SharpenImage(itk::SmartPointer<TObjectType>)'<BR>2> with<BR>2> [<BR>2> TObjectType=itk::Image<RealType,2>,<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::N3MRIBiasFieldCorrectionImageFilter(void)'<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(217) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<2>(int,char *[])' being compiled<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: 'vnl_math_floor': identifier not found<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter<TInputPointSet,TOutputImage>'<BR>2> with<BR>2> [<BR>2> TInputPointSet=itk::PointSet<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,2>,<BR>2> TOutputImage=itk::Image<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,2><BR>2> ]<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(391) : while compiling class template member function 'itk::SmartPointer<TObjectType> itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::SmoothField(itk::SmartPointer<TObjectType>)'<BR>2> with<BR>2> [<BR>2> TObjectType=itk::Image<RealType,2>,<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: 'vnl_math_floor': identifier not found<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(166) : while compiling class template member function 'itk::SmartPointer<TObjectType> itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::SharpenImage(itk::SmartPointer<TObjectType>)'<BR>2> with<BR>2> [<BR>2> TObjectType=itk::Image<RealType,3>,<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::N3MRIBiasFieldCorrectionImageFilter(void)'<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(220) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<3>(int,char *[])' being compiled<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(367) : error C3861: 'vnl_math_floor': identifier not found<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter<TInputPointSet,TOutputImage>'<BR>2> with<BR>2> [<BR>2> TInputPointSet=itk::PointSet<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,3>,<BR>2> TOutputImage=itk::Image<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,3><BR>2> ]<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(391) : while compiling class template member function 'itk::SmartPointer<TObjectType> itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::SmoothField(itk::SmartPointer<TObjectType>)'<BR>2> with<BR>2> [<BR>2> TObjectType=itk::Image<RealType,3>,<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>4>------ Skipped Rebuild All: Project: NightlyMemoryCheck, Configuration: Debug Win32 ------<BR>4>Project not selected to build for this solution configuration<SPAN class="ecxApple-converted-space"> </SPAN><BR>5>------ Skipped Rebuild All: Project: Nightly, Configuration: Debug Win32 ------<BR>5>Project not selected to build for this solution configuration<SPAN class="ecxApple-converted-space"> </SPAN><BR>6>------ Skipped Rebuild All: Project: RUN_TESTS, Configuration: Debug Win32 ------<BR>6>Project not selected to build for this solution configuration<SPAN class="ecxApple-converted-space"> </SPAN><BR>7>------ Skipped Rebuild All: Project: Experimental, Configuration: Debug Win32 ------<BR>7>Project not selected to build for this solution configuration<SPAN class="ecxApple-converted-space"> </SPAN><BR>8>------ Skipped Rebuild All: Project: Continuous, Configuration: Debug Win32 ------<BR>8>Project not selected to build for this solution configuration<SPAN class="ecxApple-converted-space"> </SPAN><BR>2>Build log was saved at "<A>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</A>"<BR>2>itkN3MRIBiasFieldCorrectionImageFilterTest - 6 error(s), 0 warning(s)<BR>9>------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Debug Win32 ------<BR>9>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: " << iteration << ": Convergence threshold = " << 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>------ Build started: Project: ImageCompare, Configuration: Debug Win32 ------<BR>2>------ Build started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------<BR>2>Compiling...<BR>1>Compiling...<BR>1>ImageCompare.cxx<BR>2>itkN3MRIBiasFieldCorrectionImageFilterTest.cxx<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'iteration' : undeclared identifier<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::GenerateData(void)'<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(217) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<2>(int,char *[])' being compiled<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'iteration' : undeclared identifier<BR>2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::GenerateData(void)'<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled<BR>2> with<BR>2> [<BR>2> TInputImage=ImageType,<BR>2> TMaskImage=MaskImageType,<BR>2> TOutputImage=ImageType<BR>2> ]<BR>2> ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(220) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<3>(int,char *[])' being compiled<BR>2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier<BR>2>Build log was saved at "<A>file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm</A>"<BR>2>itkN3MRIBiasFieldCorrectionImageFilterTest - 4 error(s), 0 warning(s)<BR>1>Compiling manifest to resources...<BR>1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<BR>1>Copyright (C) Microsoft Corporation. All rights reserved.<BR>1>Linking...<BR>1>LINK : fatal error LNK1104: cannot open file 'ITKReview.lib'<BR>1>Build log was saved at "<A>file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm</A>"<BR>1>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>