Talk:ITK/FAQ
Hi,
I'm a new user of ITK. ihave many difficulties and i need help. I have dicom image and MIP image.i want to read them on itk and then execute one of the segmentation methods and display the segmentation results. My questions are: 1.how to read a dicom image or MIP 2.if i have to display the segmentation result doi need vtk? when i read the examples and had to try them i have diffculties to undersatnd some things like ( region, instantiate region,..) Please can you help to go faster in my application specially i'm a new user on image processing and itk environement.
Thanks in advance, Sissouna
How to compile ITK with icc??
Hi,all
I'm trying to compile ITK with icc9.1, but it doesn't sucessed.
The ITK version is the newest one, 3.2.0, and CMAKE is 2.4.7.
I've set the environment CC=icc and CXX=icc. When using cmake to generate Makefile, even a simple test of compiler can't passed. The error messages are list below. Is there anyone who can tell me what's the problem and how to fix it?
Thanks a lot!!
Error messages:
CMake Error: The C++ compiler "/opt/intel/cc/9.1.039/bin/icc" is not able to compile a simple test program. It fails with the following output: /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp' /home/workload/bin/bin/cmake -E cmake_progress_report /home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o /opt/intel/cc/9.1.039/bin/icc -g -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c /home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec /home/workload/bin/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake /opt/intel/cc/9.1.039/bin/icc -g -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o" -o cmTryCompileExec -rdynamic CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' make[1]: *** [cmTryCompileExec] Error 1 make[1]: Leaving directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2
vc build itk, link error!
I complie ITK with vc6.0,but after bulid the project,it shows these error,how can I do? Thank you very much. state: linking... Searching Libraries Searching D:\Microsoft Visual Studio\VC98\LIB\snmpapi.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\wsock32.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKCommon.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKDICOMParser.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKEXPAT.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKFEM.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkgdcm.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg8.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg12.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg16.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKMetaIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkNetlibSlatec.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKniftiio.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKNrrdIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkopenjpeg.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkpng.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKSpatialObject.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKStatistics.lib: Searching D:\ITK\BIN\BIN\DEBUG\itktiff.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkv3p_netlib.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvcl.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl_algo.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl_inst.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkzlib.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKznz.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKBasicFilters.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKAlgorithms.lib: Searching D:\ITK\BIN\BIN\DEBUG\itksys.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKNumerics.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\msvcprtd.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\MSVCRTD.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\OLDNAMES.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\uuid.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\kernel32.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\snmpapi.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\wsock32.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKCommon.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKDICOMParser.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKEXPAT.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKFEM.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkgdcm.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg8.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg12.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkjpeg16.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKMetaIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkNetlibSlatec.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKniftiio.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKNrrdIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkopenjpeg.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkpng.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKSpatialObject.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKStatistics.lib: Searching D:\ITK\BIN\BIN\DEBUG\itktiff.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkv3p_netlib.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvcl.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl_algo.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkvnl_inst.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkzlib.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKznz.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKBasicFilters.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKAlgorithms.lib: Searching D:\ITK\BIN\BIN\DEBUG\itksys.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKIO.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKNumerics.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\msvcprtd.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\MSVCRTD.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\OLDNAMES.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\uuid.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\kernel32.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\snmpapi.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\wsock32.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKCommon.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKDICOMParser.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKEXPAT.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKFEM.lib: Searching D:\ITK\BIN\BIN\DEBUG\itkgdcm.lib: 。。。。。。。。。。 Searching D:\Microsoft Visual Studio\VC98\LIB\msvcprtd.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\MSVCRTD.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\OLDNAMES.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\uuid.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\kernel32.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\snmpapi.lib: Done Searching Libraries Creating library D:\itk\examplebin\Segmentation\Debug\CannySegmentationLevelSetImageFilter.lib and object D:\itk\examplebin\Segmentation\Debug\CannySegmentationLevelSetImageFilter.exp Searching Libraries Searching D:\Microsoft Visual Studio\VC98\LIB\snmpapi.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\wsock32.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKCommon.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKDICOMParser.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKEXPAT.lib: Searching D:\ITK\BIN\BIN\DEBUG\ITKFEM.lib: 。。。。。。。。 Searching D:\Microsoft Visual Studio\VC98\LIB\msvcprtd.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\MSVCRTD.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\OLDNAMES.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\uuid.lib: Searching D:\Microsoft Visual Studio\VC98\LIB\kernel32.lib: Done Searching Libraries ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__DestroyWindow@4 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__DefWindowProcA@16 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__MoveWindow@24 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__SendMessageA@16 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__ShowWindow@8 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__CreateWindowExA@48 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__RegisterClassA@4 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__GetStockObject@4 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__LoadCursorA@8 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__LoadIconA@8 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__GetClassInfoA@12 ITKCommon.lib(itkWin32OutputWindow.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxA@16 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegSetValueExA@24 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegCreateKeyExA@36 itksys.lib(SystemTools.obj) : error LNK2001: unresolved external symbol __imp__RegDeleteValueA@8 itkgdcm.lib(gdcmUtil.obj) : error LNK2001: unresolved external symbol __imp__UuidCreate@4 D:\itk\examplebin\Segmentation\Debug/CannySegmentationLevelSetImageFilter.exe : fatal error LNK1120: 19 unresolved externals Error executing link.exe.
CannySegmentationLevelSetImageFilter.exe - 20 error(s), 0 warning(s)
Sample compile problem: Segment Blood Vessels With Multi-Scale Hessian-Based Measure
Hi, All:
I am new in ITK and I am looking for a help.
Using VC++2010 Express, I could not pass the compile when trying the sample program "Segment Blood Vessels With Multi-Scale Hessian-Based Measure" at the link:
The error message are as the following:
Error 1 error C1083: Cannot open include file: 'itkHessianToObjectnessMeasureImageFilter.h': No such file or directory C:\ITK\myITK\SegmentBloodVesselsWithMultiScaleHessianBasedMeasure\Code.cxx 3 1 SegmentBloodVesselsWithMultiScaleHessianBasedMeasure
Could anyone give me hand?
Thanks a lot!
Xchen