forked from InsightSoftwareConsortium/ITKMontage
-
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.
ENH: Support nearest neighbor interpolator for montaging label maps
Co-authored-by: Matt McCormick <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
itk_wrap_include("itkLinearInterpolateImageFunction.h") | ||
itk_wrap_include("itkNearestNeighborInterpolateImageFunction.h") | ||
itk_wrap_class("itk::TileMergeImageFilter" POINTER) | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_SCALAR}) | ||
itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, double") | ||
endforeach() | ||
foreach(t ${WRAP_ITK_RGB}) | ||
itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, itk::RGBPixel<float>") | ||
endforeach() | ||
foreach(t ${WRAP_ITK_RGBA}) | ||
itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, itk::RGBAPixel<float>") | ||
foreach(iif LinearInterpolateImageFunction NearestNeighborInterpolateImageFunction) | ||
if (${iif} STREQUAL "LinearInterpolateImageFunction") | ||
set(abbr "L") # abbreviation to use in Python wrapping type name | ||
else() | ||
set(abbr "NN") | ||
endif() | ||
foreach(d ${ITK_WRAP_IMAGE_DIMS}) | ||
foreach(t ${WRAP_ITK_SCALAR}) | ||
itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, double, itk::${iif}<${ITKT_I${t}${d}}>") | ||
endforeach() | ||
foreach(t ${WRAP_ITK_RGB}) | ||
itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, itk::RGBPixel<float>, itk::${iif}<${ITKT_I${t}${d}}>") | ||
endforeach() | ||
foreach(t ${WRAP_ITK_RGBA}) | ||
itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, itk::RGBAPixel<float>, itk::${iif}<${ITKT_I${t}${d}}>") | ||
endforeach() | ||
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