Skip to content

Commit

Permalink
COMP: Duplicate ImageToImageFilter wrapping of ULL
Browse files Browse the repository at this point in the history
To address:

Warning: template already defined 'itk::ImageToImageFilter<itk::Image<unsignedlonglong,2>,itk::Image<signedshort,2>>'
Template itk::ImageToImageFilter<itk::Image<unsignedlonglong,3>,itk::Image<signedshort,3>>
 already defined as <class 'itkImageToImageFilterAPython.itkImageToImageFilterIULL3ISS3'>
 is redefined as <class 'itkImageToImageFilterAPython.itkImageToImageFilterIULL3ISS3'>
  • Loading branch information
thewtex committed Apr 26, 2020
1 parent d3286c9 commit e747b0a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Modules/Core/Common/wrapping/itkImageToImageFilterA.wrap
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
itk_wrap_class("itk::ImageToImageFilter" POINTER)
# Wrap from each scalar type to each other, and also to uchar (for 8-bit saving)
# and to ulong (for watershed).
UNIQUE(from_types "UC;ULL;${WRAP_ITK_SCALAR}")
UNIQUE(from_types "UC;${ITKM_IT};ULL;${WRAP_ITK_SCALAR}")
UNIQUE(to_types "UC;UL;${ITKM_IT};${WRAP_ITK_SCALAR}")
itk_wrap_image_filter_combinations("${from_types}" "${to_types}")

# Wrap from ulong to other integral types, even if ulong isn't wrapped. This
# is needed for the relabel components image filter.
if(NOT ITK_WRAP_unsigned_long)
itk_wrap_image_filter_combinations("${ITKM_IT}" "${WRAP_ITK_INT}")
endif()

UNIQUE(to_types "UC;${WRAP_ITK_SCALAR}")
foreach(d ${ITK_WRAP_IMAGE_DIMS})
foreach(t ${to_types})
Expand Down

0 comments on commit e747b0a

Please sign in to comment.