28 #ifndef __itkExtractImageFilterRegionCopier_h
29 #define __itkExtractImageFilterRegionCopier_h
35 namespace ImageToImageFilterDetail
40 template<
unsigned int T1,
unsigned int T2 >
47 ImageToImageFilterDefaultCopyRegion< T1, T2 >(firstEqualsSecond, destRegion, srcRegion);
53 template<
unsigned int T1,
unsigned int T2 >
60 (void) totalInputExtractionRegion;
61 ImageToImageFilterDefaultCopyRegion< T1, T2 >(firstLessThanSecond, destRegion, srcRegion);
81 template<
unsigned int T1,
unsigned int T2 >
98 for ( dim = 0; dim < T1; ++dim )
101 if ( !totalInputExtractionRegion.
GetSize()[dim] )
103 destIndex[dim] = totalInputExtractionRegion.
GetIndex()[dim];
109 destIndex[dim] = srcIndex[count];
110 destSize[dim] = srcSize[count];
139 template<
unsigned int T1,
unsigned int T2 >
149 ExtractImageFilterCopyRegion< T1, T2 >(ComparisonType(),
150 destRegion, srcRegion, totalInputExtractionRegion);
void SetSize(const SizeType &size)
const IndexType & GetIndex() const
A Function object used to dispatching to a routine to copy a region (start index and size)...
Represent the size (bounds) of a n-dimensional image.
virtual void operator()(ImageRegion< D1 > &destRegion, const ImageRegion< D2 > &srcRegion) const
An image region represents a structured region of data.
void ExtractImageFilterCopyRegion(const typename BinaryUnsignedIntDispatch< T1, T2 >::FirstEqualsSecondType &firstEqualsSecond, ImageRegion< T1 > &destRegion, const ImageRegion< T2 > &srcRegion, const ImageRegion< T1 > &)
const SizeType & GetSize() const
Templated class to produce a unique type for each integer.
Represent a n-dimensional index in a n-dimensional image.
void SetIndex(const IndexType &index)