Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConvertAnRGBitkImageTovtkImageData)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
ITKVtkGlue
)
itk_generate_factory_registration()

add_executable(${PROJECT_NAME} Code.cxx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import itk
import argparse

from distutils.version import StrictVersion

if StrictVersion(itk.Version.GetITKVersion()) < StrictVersion("5.2.0"):
if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 2, 0):
print("ITK 5.2.0 is required.")
sys.exit(1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConvertAnitkImageTovtkImageData)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKIOImageBase
ITKImageIO
ITKVtkGlue
)
itk_generate_factory_registration()

add_executable(${PROJECT_NAME} Code.cxx)
Expand Down
4 changes: 1 addition & 3 deletions src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import itk
import argparse

from distutils.version import StrictVersion

if StrictVersion(itk.Version.GetITKVersion()) < StrictVersion("5.2.0"):
if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 2, 0):
print("ITK 5.2.0 is required.")
sys.exit(1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConvertRGBvtkImageDataToAnitkImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKVtkGlue
)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConvertvtkImageDataToAnitkImage)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKVtkGlue)

# Since we use vtkImageMagnitude
find_package(VTK REQUIRED COMPONENTS ImagingMath)
Expand Down
8 changes: 7 additions & 1 deletion src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 3.22.1)

project(VTKImageToITKImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKVtkGlue
)

find_package(VTK REQUIRED)
set(_vtk_prefix "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeEvolvingDense2DLevelSetAsElevationMap)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
ITKLevelSetsv4
)
itk_generate_factory_registration()

add_executable(${PROJECT_NAME} Code.cxx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeEvolvingDense2DLevelSetZeroSet)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
ITKLevelSetsv4
)
itk_generate_factory_registration()

add_executable(${PROJECT_NAME} Code.cxx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeStaticDense2DLevelSetAsElevationMap)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
ITKImageIntensity
ITKLevelSetsv4
ITKThresholding
)
itk_generate_factory_registration()

find_package(VTK REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeStaticDense2DLevelSetZeroSet)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
ITKImageIntensity
ITKLevelSetsv4
ITKThresholding
)
itk_generate_factory_registration()

find_package(VTK REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeStaticMalcolm2DLevelSetLayers)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKIOImageBase
ITKImageIO
ITKImageIntensity
ITKLevelSetsv4
ITKThresholding
)
itk_generate_factory_registration()

find_package(VTK REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeStaticShi2DLevelSetLayers)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKIOImageBase
ITKImageIO
ITKImageIntensity
ITKLevelSetsv4
ITKThresholding
)
itk_generate_factory_registration()

find_package(VTK REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ cmake_minimum_required(VERSION 3.22.1)

project(VisualizeStaticWhitaker2DLevelSetLayers)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKIOImageBase
ITKImageIO
ITKImageIntensity
ITKLevelSetsv4
ITKThresholding
)
itk_generate_factory_registration()

find_package(VTK REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if(itk-module)
return()
endif()
endif()
find_package(ITK 5.2.0 REQUIRED)
find_package(ITK 6 REQUIRED)

# To avoid linker issues.
# Module_ITKVtkGlue is true when building inside ITK
Expand Down
9 changes: 8 additions & 1 deletion src/Core/Common/AddNoiseToBinaryImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ cmake_minimum_required(VERSION 3.22.1)

project(AddNoiseToBinaryImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
)

itk_generate_factory_registration()

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/AddOffsetToIndex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(AddOffsetToIndex)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(
${PROJECT_NAME}
Expand Down
4 changes: 1 addition & 3 deletions src/Core/Common/AddOffsetToIndex/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
import sys
import itk

from distutils.version import StrictVersion as VS

if VS(itk.Version.GetITKVersion()) < VS("4.9.0"):
if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 9, 0):
print("ITK 4.9.0 is required.")
sys.exit(1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ cmake_minimum_required(VERSION 3.22.1)

project(ApplyAFilterOnlyToASpecifiedRegionOfAnImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKImageFeature
ITKTestKernel
)

add_executable(
${PROJECT_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 3.22.1)

project(CustomOperationToEachPixelInImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKTransform
)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/BoundingBoxOfAPointSet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(BoundingBoxOfAPointSet)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(
${PROJECT_NAME}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/BresenhamLine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(BresenhamLine)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/BuildAHelloWorldProgram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(BuildAHelloWorldProgram)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(
${PROJECT_NAME}
Expand Down
8 changes: 7 additions & 1 deletion src/Core/Common/CastVectorImageToAnotherType/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 3.22.1)

project(CastVectorImageToAnotherType)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKImageFilterBase
)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/CheckIfModuleIsPresent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(CheckIfModuleIsPresent)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/ComputeTimeBetweenPoints/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(ComputeTimeBetweenPoints)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConceptCheckingIsFloatingPoint)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConceptCheckingIsSameDimension)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Common/ConceptCheckingIsSameType/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConceptCheckingIsSameType)

find_package(ITK REQUIRED)
find_package(ITK REQUIRED COMPONENTS ITKCommon)

add_executable(${PROJECT_NAME} Code.cxx)
target_link_libraries(${PROJECT_NAME} PRIVATE ITK::ITKCommonModule)
Expand Down
9 changes: 8 additions & 1 deletion src/Core/Common/ConvertArrayToImage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ cmake_minimum_required(VERSION 3.22.1)

project(ConvertArrayToImage)

find_package(ITK REQUIRED)
find_package(
ITK
REQUIRED
COMPONENTS
ITKCommon
ITKIOImageBase
ITKImageIO
)
itk_generate_factory_registration()

add_executable(${PROJECT_NAME} Code.cxx)
Expand Down
Loading
Loading