28#ifndef itkExtractImageFilterRegionCopier_h
29#define itkExtractImageFilterRegionCopier_h
38template <
unsigned int T1,
unsigned int T2>
52template <
unsigned int T1,
unsigned int T2>
79template <
unsigned int T1,
unsigned int T2>
96 for (
unsigned int dim = 0; dim < T1; ++dim)
99 if (!totalInputExtractionRegion.
GetSize()[dim])
101 destIndex[dim] = totalInputExtractionRegion.
GetIndex()[dim];
107 destIndex[dim] = srcIndex[count];
108 destSize[dim] = srcSize[count];
137template <
unsigned int T1,
unsigned int T2>
An image region represents a structured region of data.
void SetSize(const SizeType &size)
const IndexType & GetIndex() const
void SetIndex(const IndexType &index)
const SizeType & GetSize() const
A Function object used to dispatching to a routine to copy a region (start index and size).
virtual void operator()(ImageRegion< D1 > &destRegion, const ImageRegion< D2 > &srcRegion) const
void ExtractImageFilterCopyRegion(const typename BinaryUnsignedIntDispatch< T1, T2 >::FirstEqualsSecondType &firstEqualsSecond, ImageRegion< T1 > &destRegion, const ImageRegion< T2 > &srcRegion, const ImageRegion< T1 > &)
void ImageToImageFilterDefaultCopyRegion(const typename BinaryUnsignedIntDispatch< D1, D2 >::FirstEqualsSecondType &, ImageRegion< D1 > &destRegion, const ImageRegion< D2 > &srcRegion)
IntDispatch< 0 > FirstEqualsSecondType
IntDispatch< 1 > FirstGreaterThanSecondType
IntDispatch<-1 > FirstLessThanSecondType
IntDispatch<(D1 > D2) -(D1< D2)> ComparisonType
Represent a n-dimensional index in a n-dimensional image.
Represent a n-dimensional size (bounds) of a n-dimensional image.