Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit 9dcea5e

Browse files
hjmjohnsonclaude
andcommitted
COMP: Guard CurvatureRegularizer wrapping on FFTW availability
itkVariationalRegistrationCurvatureRegularizer.h is entirely guarded by #if defined(ITK_USE_FFTWD) || defined(ITK_USE_FFTWF). When FFTW is not available the class does not exist, so the wrapping file must also be conditional. Without this guard, castxml emits: error: no template named 'VariationalRegistrationCurvatureRegularizer' in namespace 'itk'; did you mean 'VariationalRegistrationRegularizer'? Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fdc3df9 commit 9dcea5e

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
itk_wrap_class("itk::VariationalRegistrationCurvatureRegularizer" POINTER)
2-
# itk_wrap_image_filter("${WRAP_ITK_USIGN_INT}" 2)
3-
# itk_wrap_image_filter("${WRAP_ITK_SIGN_INT}" 2)
4-
itk_wrap_image_filter("${WRAP_ITK_REAL}" 2)
5-
itk_wrap_image_filter("${WRAP_ITK_VECTOR_REAL}" 2)
6-
itk_wrap_image_filter("${WRAP_ITK_COV_VECTOR_REAL}" 2)
7-
itk_end_wrap_class()
1+
if(ITK_USE_FFTWD OR ITK_USE_FFTWF)
2+
itk_wrap_class("itk::VariationalRegistrationCurvatureRegularizer" POINTER)
3+
# itk_wrap_image_filter("${WRAP_ITK_USIGN_INT}" 2)
4+
# itk_wrap_image_filter("${WRAP_ITK_SIGN_INT}" 2)
5+
itk_wrap_image_filter("${WRAP_ITK_REAL}" 2)
6+
itk_wrap_image_filter("${WRAP_ITK_VECTOR_REAL}" 2)
7+
itk_wrap_image_filter("${WRAP_ITK_COV_VECTOR_REAL}" 2)
8+
itk_end_wrap_class()
9+
endif()

0 commit comments

Comments
 (0)