-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Fix wrapping for FrequencyFunction
And derived classes. The TInput parameter is now itk::Vector instead of the default itk::Point. We need to wrap FunctionBase and SpatialFunction for itk::Vector. Fix because there is no automatic conversion anymore between derived classes of FixedArray (Vector to Point in this case). Another alternative fix, but I think it's worse is to change the type returning from GetFrequency in the itkFrequencyIterators from Vector to Point. But I think a Vector is more appropiate than a point for frequencies.
- Loading branch information
Showing
21 changed files
with
74 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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,7 +1,24 @@ | ||
# Need to wrap itk::Vector because it's the type returning from frequency iterators. | ||
itk_wrap_class("itk::FunctionBase" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_VD${d}}${ITKM_${t}}" "${ITKT_VD${d}}, ${ITKT_${t}}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|
||
itk_wrap_class("itk::SpatialFunction" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_VD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_VD${d}}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|
||
itk_wrap_class("itk::FrequencyFunction" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_PD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_PD${d}}") | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_VD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_VD${d}}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() |
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,7 +1,7 @@ | ||
itk_wrap_class("itk::HeldIsotropicWavelet" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_PD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_PD${d}}") | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_VD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_VD${d}}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() |
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,7 +1,7 @@ | ||
itk_wrap_class("itk::IsotropicFrequencyFunction" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_PD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_PD${d}}") | ||
itk_wrap_template("${ITKM_${t}}${d}${ITKM_VD${d}}" "${ITKT_${t}}, ${d}, ${ITKT_VD${d}}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() |
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
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
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
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
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
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
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
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
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