Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
itk_wrap_module(IsotropicWavelets)
set(
WRAPPER_SUBMODULE_ORDER
itkMatrixComplex
itkVariableSizeMatrixComplex
itkRieszStructureTensorImageFilter
itkMonogenicSignalFrequencyImageFilter
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
itk_wrap_include("itkVariableSizeMatrix.h")

# GaussianSourceType, when ITKImageSources does not wrap double images.
if(NOT "D" IN_LIST WRAP_ITK_SCALAR)
foreach(
source
ImageSource
GenerateImageSource
ParametricImageSource
GaussianImageSource
)
itk_wrap_class("itk::${source}" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
itk_wrap_template("${ITKM_ID${d}}" "${ITKT_ID${d}}")
endforeach()
itk_end_wrap_class()
Comment thread
dzenanz marked this conversation as resolved.
Resolved
endforeach()
endif()

itk_wrap_class("itk::Image" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
itk_wrap_template("VSM${d}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
itk_wrap_class("itk::VariableSizeMatrix")
set(WRAPPER_AUTO_INCLUDE_HEADERS OFF)
itk_wrap_include("itkVariableSizeMatrix.h")

# CD is the superclass of RieszRotationMatrix.
unique(variable_size_matrix_types "${WRAP_ITK_COMPLEX_REAL};CD")

# Array is the vector type of VariableSizeMatrix, and vnl_vector its superclass.
if(NOT "CD" IN_LIST WRAP_ITK_COMPLEX_REAL)
itk_wrap_class("vnl_vector" EXPLICIT_SPECIALIZATION)
itk_wrap_template("${ITKM_CD}" "${ITKT_CD}")
itk_end_wrap_class()
endif()

itk_wrap_class("itk::Array")
foreach(t ${variable_size_matrix_types})
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}")
endforeach()
itk_end_wrap_class()

itk_wrap_class("itk::VariableSizeMatrix")
foreach(t ${variable_size_matrix_types})
itk_wrap_template("${ITKM_${t}}" "${ITKT_${t}}")
endforeach()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,12 @@ itk_python_expression_add_test(
NAME itkIsotropicWaveletsUtilitiesPythonTest
EXPRESSION "itk.IsotropicWaveletsUtilities.Factorial(2)"
)
itk_python_expression_add_test(
NAME itkRieszStructureTensorImageFilterGaussianSourcePythonTest
EXPRESSION
"assert isinstance(itk.RieszStructureTensorImageFilter[itk.Image[itk.F, 2], itk.Image[itk.VariableSizeMatrix[itk.D], 2]].New().GetGaussianSource(), itk.GaussianImageSource[itk.Image[itk.D, 2]])"
)
itk_python_expression_add_test(
NAME itkArrayComplexPythonTest
EXPRESSION "instance = itk.Array[itk.complex[itk.D]](3)"
)
21 changes: 20 additions & 1 deletion Modules/Filtering/Strain/wrapping/itkStrainImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
unique(types "D;${WRAP_ITK_REAL}")
# The gradient filter types need Vector and CovariantVector images, which are
# always wrapped for double but for float only when enabled.
set(types D)
foreach(p ${WRAP_ITK_REAL})
list(FIND WRAP_ITK_VECTOR_REAL "V${p}" vector_index)
list(FIND WRAP_ITK_COV_VECTOR_REAL "CV${p}" covariant_vector_index)
if(vector_index GREATER -1 AND covariant_vector_index GREATER -1)
list(APPEND types ${p})
endif()
endforeach()
list(REMOVE_DUPLICATES types)

itk_wrap_include("itkImageToImageFilter.h")
itk_wrap_class("itk::ImageToImageFilter" POINTER)
Expand All @@ -9,6 +19,15 @@ foreach(d ${ITK_WRAP_IMAGE_DIMS})
"${ITKM_IV${p}${vector_dim}${d}}${ITKM_ISSRT${p}${d}${d}}"
"${ITKT_IV${p}${vector_dim}${d}}, ${ITKT_ISSRT${p}${d}${d}}"
)
# VectorGradientFilterType; ITKCommon wraps it only for enabled vector types.
list(FIND WRAP_ITK_VECTOR_REAL "V${p}" vector_index)
list(FIND WRAP_ITK_COV_VECTOR_REAL "CV${p}" covariant_vector_index)
if(vector_index EQUAL -1 OR covariant_vector_index EQUAL -1)
itk_wrap_template(
"${ITKM_IV${p}${vector_dim}${d}}${ITKM_ICV${p}${vector_dim}${d}}"
"${ITKT_IV${p}${vector_dim}${d}}, ${ITKT_ICV${p}${vector_dim}${d}}"
Comment thread
dzenanz marked this conversation as resolved.
Resolved
)
endif()
endforeach()
endforeach()
itk_end_wrap_class()
Expand Down
Loading