Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest version of RTK which is now an ITK module #221

Merged
merged 1 commit into from Feb 13, 2019

Conversation

Projects
None yet
2 participants
@SimonRit
Copy link

SimonRit commented Feb 12, 2019

This commit allows to compile with RTK v2.0 and both the latest ITK v4.13.1 release and ITK v5.0.rc01. I have mainly checked compilation, see test below for the record. I have also run fixedForcedDetectionCT.mac and checked the results visually. Both ITK versions give the same result.

set -e
set -x

for ITK_VERSION in v4.13.0 v5.0rc01
do
  mkdir lin64_itk${ITK_VERSION}
  cd lin64_itk${ITK_VERSION}
  cmake /home/srit/src/itk/itk-${ITK_VERSION} -DBUILD_TESTING:BOOL=OFF -DITK_BUILD_DEFAULT_MODULES:BOOL=OFF -DModule_ITKImageBase:BOOL=ON -DModule_ITKIOGDCM:BOOL=ON -DModule_ITKThresholding:BOOL=ON -DModule_ITKFFT:BOOL=ON -DModule_ITKImageCompose:BOOL=ON -DModule_ITKSmoothing:BOOL=ON
  make -j12
  cd ..

  mkdir lin64_gate_itk${ITK_VERSION}
  cd lin64_gate_itk${ITK_VERSION}
  cmake ../opengate -DITK_DIR=../lin64_itk${ITK_VERSION} -DGATE_USE_RTK:BOOL=OFF -DGATE_USE_ITK:BOOL=ON
  make -j12
  cd ..

  mkdir lin64_itk${ITK_VERSION}_rtk
  cd lin64_itk${ITK_VERSION}_rtk
  cmake /home/srit/src/itk/itk-${ITK_VERSION} -DBUILD_TESTING:BOOL=OFF -DITK_BUILD_DEFAULT_MODULES:BOOL=OFF -DModule_ITKImageBase:BOOL=ON -DModule_ITKIOGDCM:BOOL=ON -DModule_ITKThresholding:BOOL=ON -DModule_ITKFFT:BOOL=ON -DModule_ITKImageCompose:BOOL=ON -DModule_ITKSmoothing:BOOL=ON -DModule_RTK:BOOL=ON -DRTK_USE_CUDA:BOOL=OFF -DRTK_BUILD_APPLICATIONS:BOOL=OFF
  make -j12
  cd ..
  
  mkdir lin64_gate_itk${ITK_VERSION}_rtk
  cd lin64_gate_itk${ITK_VERSION}_rtk
  cmake ../opengate -DITK_DIR=../lin64_itk${ITK_VERSION}_rtk -DGATE_USE_RTK:BOOL=ON -DGATE_USE_ITK:BOOL=ON
  make -j12
  cd ..
done

@SimonRit SimonRit force-pushed the SimonRit:develop branch from dbe4b40 to 3737a00 Feb 12, 2019

@dsarrut dsarrut merged commit e1a386e into OpenGATE:develop Feb 13, 2019

@dsarrut

This comment has been minimized.

Copy link
Contributor

dsarrut commented Feb 13, 2019

thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.