<div>Hi all,</div> <div> </div> <div>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:</div> <div> </div><FONT size=1> <div>1>------ Build started: Project: Start2, Configuration: Debug Win32 ------</div> <div>1>Compiling...</div> <div>1>Start2.cxx</div> <div>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.</div> <div>1> C:\Program Files\Microsoft
Visual Studio 8\VC\include\stdio.h(311) : see declaration of 'sscanf'</div> <div>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.</div> <div>1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'</div> <div>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.</div> <div>1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'</div> <div>1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(154) : warning C4804: '>' : unsafe use of type 'bool' in operation</div> <div>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)'</div> <div>1> with</div> <div>1> [</div> <div>1> TInputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TOutputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TKernel=KernelType</div> <div>1> ]</div> <div>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> &)'</div> <div>1> with</div> <div>1> [</div> <div>1> TInputImage=itk::Image<OutputPixelType,3>,</div> <div>1>
TOutputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TKernel=KernelType,</div> <div>1> TPixel=bool,</div> <div>1> VDimension=3</div> <div>1> ]</div> <div>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</div> <div>1> with</div> <div>1> [</div> <div>1> TInputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TOutputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TKernel=KernelType</div> <div>1> ]</div> <div>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</div> <div>1> with</div> <div>1> [</div>
<div>1> TInputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TOutputImage=itk::Image<OutputPixelType,3>,</div> <div>1> TKernel=KernelType</div> <div>1> ]</div> <div>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)'</div> <div>1> with</div> <div>1> [</div> <div>1> TInputImage=OutputImageType,</div> <div>1> TKernel=KernelType</div> <div>1> ]</div> <div>1> .\Start2.cxx(436) : see reference to class template instantiation 'itk::BinaryOpeningByReconstructionImageFilter<TInputImage,TKernel>' being compiled</div> <div>1> with</div> <div>1> [</div> <div>1> TInputImage=OutputImageType,</div> <div>1> TKernel=KernelType</div> <div>1> ]</div>
<div>1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(195) : warning C4804: '>' : unsafe use of type 'bool' in operation</div> <div>1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(371) : warning C4804: '<=' : unsafe use of type 'bool' in operation</div> <div>1>c:\alireza\software\insighttoolkit-3.4.0\code\basicfilters\itkBinaryMorphologyImageFilter.txx(388) : warning C4804: '>' : unsafe use of type 'bool' in operation</div> <div>1>Compiling manifest to resources...</div> <div>1>Linking...</div> <div>1> Creating library Debug\Start2.lib and object Debug\Start2.exp</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetEpsilonFunction(double)" (?SetEpsilonFunction@LevenbergMarquardtOptimizer@itk@@QAEXN@Z) referenced in function __catch$_main$0</div> <div>1>Start2.obj :
error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetGradientTolerance(double)" (?SetGradientTolerance@LevenbergMarquardtOptimizer@itk@@QAEXN@Z) referenced in function __catch$_main$0</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetValueTolerance(double)" (?SetValueTolerance@LevenbergMarquardtOptimizer@itk@@QAEXN@Z) referenced in function __catch$_main$0</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::LevenbergMarquardtOptimizer::SetNumberOfIterations(unsigned int)" (?SetNumberOfIterations@LevenbergMarquardtOptimizer@itk@@QAEXI@Z) referenced in function __catch$_main$0</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::Optimizer::SetScales(class itk::Array<double> const &)" (?SetScales@Optimizer@itk@@QAEXABV?$Array@N@2@@Z)
referenced in function __catch$_main$0</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "public: void __thiscall itk::MultipleValuedNonLinearVnlOptimizer::SetUseCostFunctionGradient(bool)" (?SetUseCostFunctionGradient@MultipleValuedNonLinearVnlOptimizer@itk@@QAEX_N@Z) referenced in function __catch$_main$0</div> <div>1>Start2.obj : error LNK2019: unresolved external symbol "protected: __thiscall itk::LevenbergMarquardtOptimizer::LevenbergMarquardtOptimizer(void)" (??0LevenbergMarquardtOptimizer@itk@@IAE@XZ) referenced in function "public: static class itk::SmartPointer<class itk::LevenbergMarquardtOptimizer> __cdecl itk::LevenbergMarquardtOptimizer::New(void)" (?New@LevenbergMarquardtOptimizer@itk@@SA?AV?$SmartPointer@VLevenbergMarquardtOptimizer@itk@@@2@XZ)</div> <div>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@CostFunction@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)</div> <div>1>Debug\Start2.exe : fatal error LNK1120: 8 unresolved externals</div> <div>1>Build log was saved at "file://c:\Alireza\Software\Start2\Start2.dir\Debug\BuildLog.htm"</div> <div>1>Start2 - 9 error(s), 7 warning(s)</div> <div>2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------</div> <div>2>Project not selected to build for this solution configuration </div> <div>========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========</div> <div> </div></FONT> <div>Just I would like to mention that I use visual studio 2005 on vindows Vista.Since it is so urgent,eny help be appreciate.</div> <div>Thanks in advance</div> <div>Ali</div> <div> </div><p> 
<hr size=1>Be a better sports nut! Let your teams follow you
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a>