00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkMinimumMaximumImageFilter_h
00018 #define __itkMinimumMaximumImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk
00023 {
00035 template <class TInputImage>
00036 class ITK_EXPORT MinimumMaximumImageFilter :
00037 public ImageToImageFilter< TInputImage, TInputImage>
00038 {
00039 public:
00041 itkStaticConstMacro(InputImageDimension, unsigned int,
00042 TInputImage::ImageDimension);
00043 itkStaticConstMacro(OutputImageDimension, unsigned int,
00044 TInputImage::ImageDimension);
00045
00047 typedef MinimumMaximumImageFilter Self;
00048 typedef ImageToImageFilter< TInputImage, TInputImage> Superclass;
00049 typedef SmartPointer<Self> Pointer;
00050 typedef SmartPointer<const Self> ConstPointer;
00051
00053 itkNewMacro(Self);
00054
00056 itkTypeMacro(MinimumMaximumImageFilter, ImageToImageFilter);
00057
00059 typedef TInputImage InputImageType;
00060 typedef typename InputImageType::PixelType InputPixelType;
00061
00063 itkGetMacro(Minimum,InputPixelType);
00064
00066 itkGetMacro(Maximum,InputPixelType);
00067
00068 protected:
00069 MinimumMaximumImageFilter() {}
00070 virtual ~MinimumMaximumImageFilter() {}
00071 void PrintSelf(std::ostream& os, Indent indent) const;
00072
00073 void GenerateData();
00074
00075 private:
00076 MinimumMaximumImageFilter(const Self&);
00077 void operator=(const Self&);
00078
00079 InputPixelType m_Minimum;
00080 InputPixelType m_Maximum;
00081 };
00082
00083 }
00084
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkMinimumMaximumImageFilter.txx"
00087 #endif
00088
00089 #endif