18#ifndef itkBinShrinkImageFilter_h
19#define itkBinShrinkImageFilter_h
57template <
typename TInputImage,
typename TOutputImage>
91 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
92 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
120#ifdef ITK_USE_CONCEPT_CHECKING
141 template <
class TOutputType,
class TInputType>
142 std::enable_if_t<std::numeric_limits<TOutputType>::is_integer, TOutputType>
145 return Math::Round<TOutputType>(input);
150 template <
class TOutputType,
class TInputType>
151 std::enable_if_t<!std::numeric_limits<TOutputType>::is_integer, TOutputType>
154 return static_cast<TOutputType
>(input);
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkBinShrinkImageFilter.hxx"
Reduce the size of an image by an integer factor in each dimension while performing averaging of an i...
void GenerateOutputInformation() override
void SetShrinkFactors(unsigned int factor)
typename TInputImage::IndexType InputIndexType
typename TOutputImage::OffsetType OutputOffsetType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void PrintSelf(std::ostream &os, Indent indent) const override
std::enable_if_t< std::numeric_limits< TOutputType >::is_integer, TOutputType > RoundIfInteger(TInputType input)
void GenerateInputRequestedRegion() override
typename TOutputImage::IndexType OutputIndexType
void SetShrinkFactor(unsigned int i, unsigned int factor)
std::enable_if_t<!std::numeric_limits< TOutputType >::is_integer, TOutputType > RoundIfInteger(const TInputType &input,...)
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....