00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkReflectImageFilter_h
00018 #define __itkReflectImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk
00023 {
00024
00033 template <class TInputImage, class TOutputImage>
00034 class ITK_EXPORT ReflectImageFilter : public ImageToImageFilter<TInputImage,TOutputImage>
00035 {
00036 public:
00038 typedef ReflectImageFilter Self;
00039 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00040 typedef SmartPointer<Self> Pointer;
00041 typedef SmartPointer<const Self> ConstPointer;
00042
00044 itkNewMacro(Self);
00045
00047 itkTypeMacro(ReflectImageFilter, ImageToImageFilter);
00048
00050 typedef TInputImage InputImageType;
00051 typedef typename InputImageType::Pointer InputImagePointer;
00052 typedef typename InputImageType::RegionType InputImageRegionType;
00053 typedef typename InputImageType::PixelType InputImagePixelType;
00054
00055 typedef TOutputImage OutputImageType;
00056 typedef typename OutputImageType::Pointer OutputImagePointer;
00057 typedef typename OutputImageType::RegionType OutputImageRegionType;
00058 typedef typename OutputImageType::PixelType OutputImagePixelType;
00059
00061 itkGetMacro( Direction, unsigned int );
00062 itkSetMacro( Direction, unsigned int );
00064
00066 itkStaticConstMacro(InputImageDimension, unsigned int,
00067 TInputImage::ImageDimension);
00068 itkStaticConstMacro(OutputImageDimension, unsigned int,
00069 TOutputImage::ImageDimension);
00071
00072 #ifdef ITK_USE_CONCEPT_CHECKING
00073
00074 itkConceptMacro(SameDimensionCheck,
00075 (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00076 itkConceptMacro(InputConvertibleToOutputCheck,
00077 (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00078
00080 #endif
00081
00082 protected:
00083 ReflectImageFilter();
00084 virtual ~ReflectImageFilter() {};
00085 void PrintSelf(std::ostream& os, Indent indent) const;
00086
00091 void GenerateData(void);
00092
00093 private:
00094 ReflectImageFilter(const Self&);
00095 void operator=(const Self&);
00096
00097 unsigned int m_Direction;
00098
00099 };
00100
00101 }
00102
00103 #ifndef ITK_MANUAL_INSTANTIATION
00104 #include "itkReflectImageFilter.txx"
00105 #endif
00106
00107 #endif
00108