-
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.
ENH: Wrap StructureTensor and adds GetRotationMatrix
The type of the output is defaulted to VariableSizeMatrix<double> that is already wrapped in ITK. It wraps the needed ImageToImageFilter and ImageSource Also an utility function GetRotationMatrixFromOutputMatrix is added and tested.
- Loading branch information
Showing
5 changed files
with
116 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
itk_wrap_include("itkVariableSizeMatrix.h") | ||
|
||
itk_wrap_class("itk::Image" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("VSM${ITKM_I${t}}${d}" | ||
"itk::VariableSizeMatrix< ${ITKT_D} >, ${d}") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|
||
itk_wrap_class("itk::ImageSource" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("VSM${ITKM_I${ITKM_${t}}}${d}" | ||
"itk::Image<itk::VariableSizeMatrix< ${ITKT_D} >, ${d} >") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|
||
itk_wrap_class("itk::ImageToImageFilter" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_I${t}${d}}VSM${ITKM_I${ITKM_${t}}}${d}" | ||
"${ITKT_I${t}${d}}, itk::Image<itk::VariableSizeMatrix< ${ITKT_D} >, ${d} >") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|
||
itk_wrap_class("itk::StructureTensor" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_REAL}) | ||
itk_wrap_template("${ITKM_I${t}${d}}VSM${ITKM_I${ITKM_${t}}}${d}" | ||
"${ITKT_I${t}${d}}, itk::Image<itk::VariableSizeMatrix< ${ITKT_D} >, ${d} >") | ||
endforeach() | ||
endforeach() | ||
itk_end_wrap_class() | ||
|