[Insight-users] Iterative closest point registration

Alireza Salamy alireza_sal2000 at yahoo.com
Sat Dec 1 14:54:38 EST 2007


Hi all,
   
  I used ITK 3.2 to develope a segmentation and registration program for image-guided neurosurgery.My algorithms worked properly by ITK 3.2 but now when I try to implement it by ITK 3.4(Latest version) ,I face a problem in registration part.In registration part,I used Iterativeclosestpointregistration2.I have not done that much change on the Iterative closest ponit registration2 but I faced with following errors when I build it:
   
  1>------ Build started: Project: Start2, Configuration: Debug Win32 ------
  1>Compiling...
  1>Start2.cxx
  1>C:\Alireza\Software\InsightToolkit-3.4.0\Utilities\gdcm\src\gdcmSerieHelper.h(114) : warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(311) : see declaration of 'sscanf'
  1>.\Start2.cxx(375) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
  1>.\Start2.cxx(398) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
  1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(154) : warning C4804: '>' : unsafe use of type 'bool' in operation
  1> c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(120) : while compiling class template member function 'void itk::BinaryMorphologyImageFilter<TInputImage,TOutputImage,TKernel>::AnalyzeKernel(void)'
  1> with
  1> [
  1> TInputImage=itk::Image<OutputPixelType,3>,
  1> TOutputImage=itk::Image<OutputPixelType,3>,
  1> TKernel=KernelType
  1> ]
  1> c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(107) : while compiling class template member function 'void itk::BinaryMorphologyImageFilter<TInputImage,TOutputImage,TKernel>::SetKernel(const itk::BinaryBallStructuringElement<TPixel,VDimension> &)'
  1> with
  1> [
  1> TInputImage=itk::Image<OutputPixelType,3>,
  1> TOutputImage=itk::Image<OutputPixelType,3>,
  1> TKernel=KernelType,
  1> TPixel=bool,
  1> VDimension=3
  1> ]
  1> c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryErodeImageFilter.h(70) : see reference to class template instantiation 'itk::BinaryMorphologyImageFilter<TInputImage,TOutputImage,TKernel>' being compiled
  1> with
  1> [
  1> TInputImage=itk::Image<OutputPixelType,3>,
  1> TOutputImage=itk::Image<OutputPixelType,3>,
  1> TKernel=KernelType
  1> ]
  1> c:\alireza\software\insighttoolkit-3.4.0\examples\morphological operation 1\itkBinaryOpeningByReconstructionImageFilter.txx(60) : see reference to class template instantiation 'itk::BinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>' being compiled
  1> with
  1> [
  1> TInputImage=itk::Image<OutputPixelType,3>,
  1> TOutputImage=itk::Image<OutputPixelType,3>,
  1> TKernel=KernelType
  1> ]
  1> c:\alireza\software\insighttoolkit-3.4.0\examples\morphological operation 1\itkBinaryOpeningByReconstructionImageFilter.txx(55) : while compiling class template member function 'void itk::BinaryOpeningByReconstructionImageFilter<TInputImage,TKernel>::GenerateData(void)'
  1> with
  1> [
  1> TInputImage=OutputImageType,
  1> TKernel=KernelType
  1> ]
  1> .\Start2.cxx(436) : see reference to class template instantiation 'itk::BinaryOpeningByReconstructionImageFilter<TInputImage,TKernel>' being compiled
  1> with
  1> [
  1> TInputImage=OutputImageType,
  1> TKernel=KernelType
  1> ]
  1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(195) : warning C4804: '>' : unsafe use of type 'bool' in operation
  1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(371) : warning C4804: '<=' : unsafe use of type 'bool' in operation
  1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(388) : warning C4804: '>' : unsafe use of type 'bool' in operation
  1>Compiling manifest to resources...
  1>Linking...
  1> Creating library Debug\Start2.lib and object Debug\Start2.exp
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetEpsilonFunction(double)" (?SetEpsilonFunction at LevenbergMarquardtOptimizer@itk@@QAEXN at Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetGradientTolerance(double)" (?SetGradientTolerance at LevenbergMarquardtOptimizer@itk@@QAEXN at Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetValueTolerance(double)" (?SetValueTolerance at LevenbergMarquardtOptimizer@itk@@QAEXN at Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetNumberOfIterations(unsigned int)" (?SetNumberOfIterations at LevenbergMarquardtOptimizer@itk@@QAEXI at Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::Optimizer::SetScales(class itk::Array<double> const &)" (?SetScales at Optimizer@itk@@QAEXABV?$Array at N@2@@Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::MultipleValuedNonLinearVnlOptimizer::SetUseCostFunctionGradient(bool)" (?SetUseCostFunctionGradient at MultipleValuedNonLinearVnlOptimizer@itk@@QAEX_N at Z) referenced in function __catch$_main$0
  1>Start2.obj : error LNK2019: unresolved external symbol "protected: __thiscall itk::LevenbergMarquardtOptimizer::LevenbergMarquardtOptimizer(void)" (??0LevenbergMarquardtOptimizer at itk@@IAE at XZ) referenced in function "public: static class itk::SmartPointer<class itk::LevenbergMarquardtOptimizer> __cdecl itk::LevenbergMarquardtOptimizer::New(void)" (?New at LevenbergMarquardtOptimizer@itk@@SA?AV?$SmartPointer at VLevenbergMarquardtOptimizer@itk@@@2 at XZ)
  1>Start2.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::CostFunction::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf at CostFunction@itk@@MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
  1>Debug\Start2.exe : fatal error LNK1120: 8 unresolved externals
  1>Build log was saved at "file://c:\Alireza\Software\Start2\Start2.dir\Debug\BuildLog.htm"
  1>Start2 - 9 error(s), 7 warning(s)
  2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
  2>Project not selected to build for this solution configuration 
  ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
   
  Just I would like to mention that I use visual studio 2005 on vindows Vista.Since it is so urgent,eny help be appreciate.
  Thanks in advance
  Ali
   

       
---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071201/80e7626b/attachment.htm


More information about the Insight-users mailing list