-
Notifications
You must be signed in to change notification settings - Fork 47
ITK 5.2 upgrade #378
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
ITK 5.2 upgrade #378
Changes from all commits
c7bb344
2d74e97
599a3fb
3edfe06
85de5f3
f5c9ef7
e3fe7c5
577c161
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,9 @@ SET(itk_CACHE_ARGS | |
"-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}" | ||
"-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>" | ||
"-DITK_BUILD_DEFAULT_MODULES:BOOL=OFF" | ||
"-DITKV3_COMPATIBILITY:BOOL=ON" | ||
"-DITKV4_COMPATIBILITY:BOOL=ON" | ||
"-DITK_LEGACY_REMOVE:BOOL=OFF" | ||
"-DITK_FUTURE_LEGACY_REMOVE:BOOL=OFF" | ||
"-DModule_ITKRegistrationCommon:BOOL=ON" | ||
"-DModule_ITKSmoothing:BOOL=ON" | ||
"-DModule_ITKAnisotropicSmoothing:BOOL=ON" | ||
|
@@ -68,12 +70,13 @@ SET(itk_CACHE_ARGS | |
"-DModule_ITKIOGIPL:BOOL=ON" | ||
"-DModule_IITKIOMeta:BOOL=ON" | ||
"-DModule_ITKIONRRD:BOOL=ON" | ||
"-DModule_ITKDeprecated:BOOL=ON" | ||
"-DModule_ITKDeprecated:BOOL=OFF" | ||
"-DCMAKE_CXX_FLAGS:STATIC=${CMAKE_CXX_FLAGS}" | ||
"-DCMAKE_CXX_FLAGS_DEBUG:STATIC=${CMAKE_CXX_FLAGS_DEBUG}" | ||
"-DCMAKE_C_FLAGS:STATIC=${CMAKE_C_FLAGS}" | ||
"-DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD:STATIC=${CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD}" | ||
"-DCMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY:STATIC=${CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY}" | ||
"-DHDF5_BUILD_HL_LIB:BOOL=ON" | ||
) | ||
|
||
IF(BUILD_MOSAIC_TOOLS) | ||
|
@@ -86,12 +89,12 @@ IF(BUILD_MOSAIC_TOOLS) | |
) | ||
ENDIF() | ||
|
||
SET(itk_GIT_TAG "origin/itk-4.13.1") | ||
SET(itk_GIT_TAG "enableH5HL") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just merged the commit from H5HL branch into master, so this should be changed to |
||
|
||
# If CMake ever allows overriding the checkout command or adding flags, | ||
# git checkout -q will silence message about detached head (harmless). | ||
ExternalProject_Add(ITK_external | ||
GIT_REPOSITORY "https://github.com/CIBC-Internal/itk.git" | ||
GIT_REPOSITORY "https://github.com/InsightSoftwareConsortium/ITK.git" | ||
GIT_TAG ${itk_GIT_TAG} | ||
UPDATE_COMMAND "" | ||
PATCH_COMMAND "" | ||
|
@@ -101,6 +104,6 @@ ExternalProject_Add(ITK_external | |
|
||
# hardcoded, since we need this before ITK's configure step | ||
ExternalProject_Get_Property(ITK_external INSTALL_DIR) | ||
SET(ITK_DIR "${INSTALL_DIR}/lib/cmake/ITK-4.13" CACHE PATH "") | ||
SET(ITK_DIR "${INSTALL_DIR}/lib/cmake/ITK-5.2" CACHE PATH "") | ||
|
||
MESSAGE(STATUS "ITK_DIR=${ITK_DIR}") |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ ClipboardItem::~ClipboardItem() | |
|
||
ClipboardItemHandle ClipboardItem::clone() const | ||
{ | ||
ClipboardItem* cpy = new ClipboardItem( this->private_->width_, | ||
ClipboardItem* cpy = new ClipboardItem( this->private_->width_, | ||
this->private_->height_, this->private_->data_type_ ); | ||
cpy->private_->buffer_ = this->private_->buffer_; | ||
cpy->private_->provenance_id_ = this->private_->provenance_id_; | ||
|
@@ -126,6 +126,10 @@ void ClipboardItem::resize( size_t width, size_t height, Core::DataType data_typ | |
case Core::DataType::UINT_E: | ||
buffer_size = sizeof( int ); | ||
break; | ||
case Core::DataType::LONGLONG_E: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At least, this commit should be called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I'm so sorry! I didn't mean to not give credit to Lee! I really appreciate the help. I will cherry pick in the future! |
||
case Core::DataType::ULONGLONG_E: | ||
buffer_size = sizeof( long long ); | ||
break; | ||
case Core::DataType::FLOAT_E: | ||
buffer_size = sizeof( float ); | ||
break; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The combination of settings here is indicative of full update to ITKv4, and minimal update to ITKv5. For future proofing, we should finish migration to ITKv5. That should be done in a new PR. Possibly after allowing a week or so of use to see if there are any immediate bugs/changes caused by this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turning on removal of legacy code did not require further changes on my machine. I created an alternative PR with full commit history in #382.