 |
ITK
5.4.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkBinShrinkImageFilter_h
19 #define itkBinShrinkImageFilter_h
22 #include <type_traits>
57 template <
typename TInputImage,
typename TOutputImage>
91 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
92 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
100 SetShrinkFactors(
unsigned int factor);
102 SetShrinkFactor(
unsigned int i,
unsigned int factor);
109 GenerateOutputInformation()
override;
117 GenerateInputRequestedRegion()
override;
120 #ifdef ITK_USE_CONCEPT_CHECKING
132 PrintSelf(std::ostream & os,
Indent indent)
const override;
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"
SmartPointer< Self > Pointer
typename TOutputImage::OffsetType OutputOffsetType
SmartPointer< const Self > ConstPointer
typename OutputImageType::Pointer OutputImagePointer
std::enable_if_t<!std::numeric_limits< TOutputType >::is_integer, TOutputType > RoundIfInteger(const TInputType &input,...)
std::enable_if_t< std::numeric_limits< TOutputType >::is_integer, TOutputType > RoundIfInteger(TInputType input)
Reduce the size of an image by an integer factor in each dimension while performing averaging of an i...
Control indentation during Print() invocation.
ImageBaseType::IndexType IndexType
Base class for filters that take an image as input and produce an image as output.
Base class for all process objects that output image data.
typename InputImageType::Pointer InputImagePointer
ImageBaseType::RegionType RegionType
TInputImage InputImageType
typename TOutputImage::IndexType OutputIndexType
typename OutputImageType::RegionType OutputImageRegionType
typename TInputImage::IndexType InputIndexType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename InputImageType::ConstPointer InputImageConstPointer
TOutputImage OutputImageType