18 #ifndef itkBinShrinkImageFilter_h
19 #define itkBinShrinkImageFilter_h
56 template <
typename TInputImage,
typename TOutputImage>
88 itkStaticConstMacro(ImageDimension,
unsigned int,
89 TInputImage::ImageDimension );
90 itkStaticConstMacro(OutputImageDimension,
unsigned int,
91 TOutputImage::ImageDimension );
99 void SetShrinkFactors(
unsigned int factor);
100 void SetShrinkFactor(
unsigned int i,
unsigned int factor);
106 virtual void GenerateOutputInformation() ITK_OVERRIDE;
113 virtual
void GenerateInputRequestedRegion() ITK_OVERRIDE;
116 #ifdef ITK_USE_CONCEPT_CHECKING
128 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
139 template<
class TOutputType,
class TInputType >
140 typename EnableIfC<std::numeric_limits<TOutputType>::is_integer, TOutputType>::Type
143 return Math::Round< TOutputType >( input );
148 template<
class TOutputType,
class TInputType >
152 return static_cast<TOutputType
>(input);
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkBinShrinkImageFilter.hxx"
OutputImageType::Pointer OutputImagePointer
TOutputImage::OffsetType OutputOffsetType
TInputImage InputImageType
SmartPointer< Self > Pointer
Base class for all process objects that output image data.
TOutputImage::RegionType OutputImageRegionType
EnableIfC< std::numeric_limits< TOutputType >::is_integer, TOutputType >::Type RoundIfInteger(TInputType input)
BinShrinkImageFilter Self
ImageToImageFilter< TInputImage, TOutputImage > Superclass
DisableIfC< std::numeric_limits< TOutputType >::is_integer, TOutputType >::Type RoundIfInteger(const TInputType &input,...)
FixedArray< unsigned int, ImageDimension > ShrinkFactorsType
TOutputImage OutputImageType
unsigned int ThreadIdType
Reduce the size of an image by an integer factor in each dimension while performing averaging of an i...
TOutputImage::IndexType OutputIndexType
InputImageType::Pointer InputImagePointer
TInputImage::IndexType InputIndexType
Base class for filters that take an image as input and produce an image as output.
SmartPointer< const Self > ConstPointer
OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
ShrinkFactorsType m_ShrinkFactors
#define itkConceptMacro(name, concept)
An implementation of the negation of the enable if idiom.
InputImageType::ConstPointer InputImageConstPointer
ImageBaseType::IndexType IndexType