forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Wrap FastSymmetricForcesDemonsRegistrationFilter like its paren…
…t class Addresses InsightSoftwareConsortium#2406
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
Modules/Nonunit/Review/wrapping/itkFastSymmetricForcesDemonsRegistrationFilter.wrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
itk_wrap_class("itk::FastSymmetricForcesDemonsRegistrationFilter" POINTER) | ||
foreach(s ${WRAP_ITK_SCALAR}) | ||
itk_wrap_image_filter_combinations("${s}" "${s}" "${WRAP_ITK_VECTOR_REAL}" 2+) | ||
foreach(curr_dim ${ITK_WRAP_IMAGE_DIMS}) | ||
if(${curr_dim} LESS 1) | ||
continue() | ||
endif() | ||
# Vector components dimension must match image dimension. Temporarily change the global vector dims list. | ||
set(SAVE_ITK_WRAP_VECTOR_COMPONENTS_FOR_ITK_PDE_DEFORMABLE_REGISTRATION_FILTER "${ITK_WRAP_VECTOR_COMPONENTS}") | ||
set(ITK_WRAP_VECTOR_COMPONENTS ${curr_dim}) | ||
foreach(s ${WRAP_ITK_SCALAR}) | ||
itk_wrap_image_filter_combinations("${s}" "${s}" "${WRAP_ITK_VECTOR_REAL}" ${curr_dim}) | ||
endforeach() | ||
# Restore the global vector dims list. | ||
set(ITK_WRAP_VECTOR_COMPONENTS "${SAVE_ITK_WRAP_VECTOR_COMPONENTS_FOR_ITK_PDE_DEFORMABLE_REGISTRATION_FILTER}") | ||
unset(SAVE_ITK_WRAP_VECTOR_COMPONENTS_FOR_ITK_PDE_DEFORMABLE_REGISTRATION_FILTER) | ||
endforeach() | ||
itk_end_wrap_class() |