[Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)
Samuele Dietler
samuele_82 at hotmail.com
Fri Oct 23 07:40:43 EDT 2009
Hello,
thank you, i was looking at your code and try some experiment for make it working...The line is :
itkDebugMacro( "Iteration " << iteration << ": "
<< " convergence criterion = " << cv );
But there i have still some errors...This is the list :
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'ZERO_CHECK', configuration 'Debug|Win32'
1>Checking Build System
1>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.
1>Build log was saved at "file://c:\tk\N3CorrectionBin\ZERO_CHECK.dir\Debug\BuildLog.htm"
1>ZERO_CHECK - 0 error(s), 0 warning(s)
2>------ Rebuild All started: Project: itkN3MRIBiasFieldCorrectionImageFilterTest, Configuration: Debug Win32 ------
3>------ Rebuild All started: Project: ImageCompare, Configuration: Debug Win32 ------
3>Deleting intermediate and output files for project 'ImageCompare', configuration 'Debug|Win32'
2>Deleting intermediate and output files for project 'itkN3MRIBiasFieldCorrectionImageFilterTest', configuration 'Debug|Win32'
2>Building Custom Rule C:/tk/N3Correction/CMakeLists.txt
3>Building Custom Rule C:/tk/N3Correction/CMakeLists.txt
2>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.
2>Compiling...
3>CMake is re-running because build system is out-of-date.
3>-- Configuring done
2>itkN3MRIBiasFieldCorrectionImageFilterTest.cxx
3>-- Generating done
3>-- Build files have been written to: C:/tk/N3CorrectionBin
3>Compiling...
3>ImageCompare.cxx
3>Compiling manifest to resources...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
3>Copyright (C) Microsoft Corporation. All rights reserved.
3>Linking...
3>LINK : fatal error LNK1104: cannot open file 'ITKReview.lib'
3>Build log was saved at "file://c:\tk\N3CorrectionBin\ImageCompare.dir\Debug\BuildLog.htm"
3>ImageCompare - 1 error(s), 0 warning(s)
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: 'vnl_math_floor': identifier not found
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>)'
2> with
2> [
2> TObjectType=itk::Image<RealType,2>,
2> TInputImage=ImageType,
2> TMaskImage=MaskImageType,
2> TOutputImage=ImageType
2> ]
2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::N3MRIBiasFieldCorrectionImageFilter(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(367) : error C3861: 'vnl_math_floor': identifier not found
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter<TInputPointSet,TOutputImage>'
2> with
2> [
2> TInputPointSet=itk::PointSet<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,2>,
2> TOutputImage=itk::Image<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,2>
2> ]
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>)'
2> with
2> [
2> TObjectType=itk::Image<RealType,2>,
2> TInputImage=ImageType,
2> TMaskImage=MaskImageType,
2> TOutputImage=ImageType
2> ]
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(211) : error C3861: 'vnl_math_floor': identifier not found
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>)'
2> with
2> [
2> TObjectType=itk::Image<RealType,3>,
2> TInputImage=ImageType,
2> TMaskImage=MaskImageType,
2> TOutputImage=ImageType
2> ]
2> c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(38) : while compiling class template member function 'itk::N3MRIBiasFieldCorrectionImageFilter<TInputImage,TMaskImage,TOutputImage>::N3MRIBiasFieldCorrectionImageFilter(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(367) : error C3861: 'vnl_math_floor': identifier not found
2>c:\tk\n3correction\itkN3MRIBiasFieldCorrectionImageFilter.txx(445) : error C2039: 'SetDirection' : is not a member of 'itk::BSplineScatteredDataPointSetToImageFilter<TInputPointSet,TOutputImage>'
2> with
2> [
2> TInputPointSet=itk::PointSet<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,3>,
2> TOutputImage=itk::Image<itk::N3MRIBiasFieldCorrectionImageFilter<ImageType,MaskImageType,ImageType>::ScalarType,3>
2> ]
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>)'
2> with
2> [
2> TObjectType=itk::Image<RealType,3>,
2> TInputImage=ImageType,
2> TMaskImage=MaskImageType,
2> TOutputImage=ImageType
2> ]
4>------ Skipped Rebuild All: Project: NightlyMemoryCheck, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration
5>------ Skipped Rebuild All: Project: Nightly, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Rebuild All: Project: RUN_TESTS, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Rebuild All: Project: Experimental, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Rebuild All: Project: Continuous, Configuration: Debug Win32 ------
8>Project not selected to build for this solution configuration
2>Build log was saved at "file://c:\tk\N3CorrectionBin\itkN3MRIBiasFieldCorrectionImageFilterTest.dir\Debug\BuildLog.htm"
2>itkN3MRIBiasFieldCorrectionImageFilterTest - 6 error(s), 0 warning(s)
9>------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Debug Win32 ------
9>Project not selected to build for this solution configuration
========== Rebuild All: 1 succeeded, 2 failed, 6 skipped ==========
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...
Thank you
Samuele
CC: insight-users at itk.org
From: ntustison at gmail.com
Subject: Re: [Insight-users] compilation problem itkN3MRIBiasFieldCorrectionImageFilter(taken from insight journal)
Date: Fri, 23 Oct 2009 07:26:25 -0400
To: samuele_82 at hotmail.com
Hi Samuele,
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
itkDebugMacro( "Iteration: " << iteration << ": Convergence threshold = " << convergence )
and just delete it. That should correct the problem.
Nick
On Oct 23, 2009, at 5:42 AM, Samuele Dietler wrote: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 Today: Resta aggiornato sulle attività dei tuoi amici su Flickr, Dada e MySpace_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
_________________________________________________________________
Curiosità, trucchi e consigli per il tuo Messenger!
http://www.messenger.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091023/6ed909a3/attachment-0001.htm>
More information about the Insight-users
mailing list