[Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)

Samuele Dietler samuele_82 at hotmail.com
Fri Oct 23 05:42:04 EDT 2009


Hello itk users,
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 :


1>------ Build started: Project: ImageCompare, Configuration: Debug Win32 ------
2>------ Build started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------
2>Compiling...
1>Compiling...
1>ImageCompare.cxx
2>itkN3MRIBiasFieldCorrectionImageFilterTest.cxx
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'iteration' : undeclared identifier
2>        c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::GenerateData(void)'
2>        with
2>        [
2>            TInputImage=ImageType,
2>            TMaskImage=MaskImageType,
2>            TOutputImage=ImageType
2>        ]
2>        ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled
2>        with
2>        [
2>            TInputImage=ImageType,
2>            TMaskImage=MaskImageType,
2>            TOutputImage=ImageType
2>        ]
2>        ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(217) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<2>(int,char *[])' being compiled
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'iteration' : undeclared identifier
2>        c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(59) : while compiling class template member function 'void itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::GenerateData(void)'
2>        with
2>        [
2>            TInputImage=ImageType,
2>            TMaskImage=MaskImageType,
2>            TOutputImage=ImageType
2>        ]
2>        ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(109) : see reference to class template instantiation 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>' being compiled
2>        with
2>        [
2>            TInputImage=ImageType,
2>            TMaskImage=MaskImageType,
2>            TOutputImage=ImageType
2>        ]
2>        ..\N3Correction\itkN3MRIBiasFieldCorrectionImageFilterTest.cxx(220) : see reference to function template instantiation 'int itkN3MRIBiasFieldCorrectionImageFilterTest<3>(int,char *[])' being compiled
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(136) : error C2065: 'cv' : undeclared identifier
2>Build log was saved at "file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm"
2>itkN3MRIBiasFieldCorrectionImageFilterTest - 4 error(s), 0 warning(s)
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'ITKReview.lib'
1>Build log was saved at "file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm"
1>ImageCompare - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========


Does anyone know hot to solve the problem?? 


Thank you, bests
Samuele


 		 	   		  
_________________________________________________________________
Windows Live: rendi più semplice per i tuoi amici vedere cosa stai facendo su Facebook.
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_2:092010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091023/884de650/attachment.htm>


More information about the Insight-users mailing list