18 #ifndef itkSliceImageFilter_h
19 #define itkSliceImageFilter_h
55 template<
class TInputImage,
class TOutputImage >
56 class ITK_EXPORT SliceImageFilter:
57 public ImageToImageFilter< TInputImage, TOutputImage >
61 typedef SliceImageFilter Self;
62 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
70 itkTypeMacro(SliceImageFilter, ImageToImageFilter);
73 typedef TOutputImage OutputImageType;
74 typedef TInputImage InputImageType;
75 typedef typename OutputImageType::Pointer OutputImagePointer;
76 typedef typename InputImageType::Pointer InputImagePointer;
77 typedef typename InputImageType::ConstPointer InputImageConstPointer;
79 typedef typename TOutputImage::IndexType OutputIndexType;
80 typedef typename TInputImage::IndexType InputIndexType;
81 typedef typename TOutputImage::OffsetType OutputOffsetType;
84 typedef typename TOutputImage::RegionType OutputImageRegionType;
87 itkStaticConstMacro(ImageDimension,
unsigned int,
88 TInputImage::ImageDimension);
89 itkStaticConstMacro(OutputImageDimension,
unsigned int,
90 TOutputImage::ImageDimension);
93 typedef typename InputImageType::IndexType
IndexType;
98 itkSetMacro(Start, IndexType);
99 itkGetConstReferenceMacro(Start, IndexType);
100 void SetStart(IndexValueType start);
103 itkSetMacro(Stop, IndexType);
104 itkGetConstReferenceMacro(Stop, IndexType);
105 void SetStop(IndexValueType stop);
111 itkSetMacro(Step, ArrayType);
112 itkGetConstReferenceMacro(Step, ArrayType);
113 void SetStep(
int step);
119 virtual void GenerateOutputInformation() ITK_OVERRIDE;
121 virtual
void GenerateInputRequestedRegion() ITK_OVERRIDE;
123 #ifdef ITK_USE_CONCEPT_CHECKING
126 ( Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType > ) );
128 ( Concept::SameDimension< ImageDimension, OutputImageDimension > ) );
135 void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
147 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
150 void VerifyInputInformation() ITK_OVERRIDE;
153 SliceImageFilter(const Self &);
154 void operator=(const Self &);
162 #ifndef ITK_MANUAL_INSTANTIATION
163 #include "itkSliceImageFilter.hxx"
signed long IndexValueType
unsigned int ThreadIdType
#define itkConceptMacro(name, concept)