diff --git a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMaximumProjectionImageFilter.cpp b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMaximumProjectionImageFilter.cpp index fd12b0fd66..715b001db2 100644 --- a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMaximumProjectionImageFilter.cpp +++ b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMaximumProjectionImageFilter.cpp @@ -24,6 +24,9 @@ using ArrayOptionsType = ITK::ScalarPixelIdTypeList; template using FilterOutputTypeUI8 = uint8; +template +using FilterOutputTypeI16 = int16; + template using FilterOutputTypeUI16 = uint16; @@ -150,6 +153,11 @@ IFilter::PreflightResult ITKMaximumProjectionImageFilter::preflightImpl(const Da ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); break; } + case DataType::int16: { + helperOutputActions = + ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); + break; + } case DataType::uint16: { helperOutputActions = ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); @@ -162,8 +170,6 @@ IFilter::PreflightResult ITKMaximumProjectionImageFilter::preflightImpl(const Da } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: @@ -223,6 +229,11 @@ Result<> ITKMaximumProjectionImageFilter::executeImpl(DataStructure& dataStructu outputArrayPath, itkFunctor, shouldCancel); break; } + case DataType::int16: { + result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, + outputArrayPath, itkFunctor, shouldCancel); + break; + } case DataType::uint16: { result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath, itkFunctor, shouldCancel); @@ -235,8 +246,6 @@ Result<> ITKMaximumProjectionImageFilter::executeImpl(DataStructure& dataStructu } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: diff --git a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMedianProjectionImageFilter.cpp b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMedianProjectionImageFilter.cpp index c7818264cc..1ab5278db1 100644 --- a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMedianProjectionImageFilter.cpp +++ b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMedianProjectionImageFilter.cpp @@ -27,6 +27,9 @@ using ArrayOptionsType = ITK::ScalarPixelIdTypeList; template using FilterOutputTypeUI8 = uint8; +template +using FilterOutputTypeI16 = int16; + template using FilterOutputTypeUI16 = uint16; @@ -153,6 +156,11 @@ IFilter::PreflightResult ITKMedianProjectionImageFilter::preflightImpl(const Dat ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); break; } + case DataType::int16: { + helperOutputActions = + ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); + break; + } case DataType::uint16: { helperOutputActions = ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); @@ -165,8 +173,6 @@ IFilter::PreflightResult ITKMedianProjectionImageFilter::preflightImpl(const Dat } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: @@ -227,6 +233,11 @@ Result<> ITKMedianProjectionImageFilter::executeImpl(DataStructure& dataStructur itkFunctor, shouldCancel); break; } + case DataType::int16: { + result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath, + itkFunctor, shouldCancel); + break; + } case DataType::uint16: { result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath, itkFunctor, shouldCancel); @@ -239,8 +250,6 @@ Result<> ITKMedianProjectionImageFilter::executeImpl(DataStructure& dataStructur } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: diff --git a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMinimumProjectionImageFilter.cpp b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMinimumProjectionImageFilter.cpp index 635830c13a..004bf9e614 100644 --- a/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMinimumProjectionImageFilter.cpp +++ b/src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMinimumProjectionImageFilter.cpp @@ -24,6 +24,9 @@ using ArrayOptionsType = ITK::ScalarPixelIdTypeList; template using FilterOutputTypeUI8 = uint8; +template +using FilterOutputTypeI16 = int16; + template using FilterOutputTypeUI16 = uint16; @@ -150,6 +153,11 @@ IFilter::PreflightResult ITKMinimumProjectionImageFilter::preflightImpl(const Da ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); break; } + case DataType::int16: { + helperOutputActions = + ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); + break; + } case DataType::uint16: { helperOutputActions = ITK::DataCheck(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath); @@ -162,8 +170,6 @@ IFilter::PreflightResult ITKMinimumProjectionImageFilter::preflightImpl(const Da } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: @@ -223,6 +229,11 @@ Result<> ITKMinimumProjectionImageFilter::executeImpl(DataStructure& dataStructu outputArrayPath, itkFunctor, shouldCancel); break; } + case DataType::int16: { + result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, + outputArrayPath, itkFunctor, shouldCancel); + break; + } case DataType::uint16: { result = ITK::Execute(dataStructure, selectedInputArray, imageGeomPath, outputArrayPath, itkFunctor, shouldCancel); @@ -235,8 +246,6 @@ Result<> ITKMinimumProjectionImageFilter::executeImpl(DataStructure& dataStructu } case DataType::int8: [[fallthrough]]; - case DataType::int16: - [[fallthrough]]; case DataType::int32: [[fallthrough]]; case DataType::uint32: