00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageAndPathToImageFilter_h
00018 #define __itkImageAndPathToImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk
00023 {
00024
00037 template <class TInputImage, class TInputPath, class TOutputImage>
00038 class ITK_EXPORT ImageAndPathToImageFilter :
00039 public ImageToImageFilter<TInputImage,TOutputImage>
00040 {
00041 public:
00043 typedef ImageAndPathToImageFilter Self;
00044 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00045 typedef SmartPointer<Self> Pointer;
00046 typedef SmartPointer<const Self> ConstPointer;
00047
00049 itkNewMacro(Self);
00050
00052 itkTypeMacro(ImageAndPathToImageFilter, ImageToImageFilter);
00053
00055 typedef TInputImage InputImageType;
00056 typedef typename InputImageType::ConstPointer InputImagePointer;
00057 typedef typename InputImageType::RegionType InputImageRegionType;
00058 typedef typename InputImageType::PixelType InputImagePixelType;
00059 typedef TInputPath InputPathType;
00060 typedef typename InputPathType::Pointer InputPathPointer;
00061 typedef typename InputPathType::ConstPointer InputPathConstPointer;
00062 typedef typename InputPathType::InputType InputPathInputType;
00063 typedef typename InputPathType::OutputType InputPathOutputType;
00064 typedef typename InputPathType::IndexType InputPathIndexType;
00065 typedef typename InputPathType::OffsetType InputPathOffsetType;
00066 typedef TOutputImage OutputImageType;
00067 typedef typename OutputImageType::Pointer OutputImagePointer;
00068 typedef typename OutputImageType::RegionType OutputImageRegionType;
00069 typedef typename OutputImageType::PixelType OutputImagePixelType;
00070
00072 itkStaticConstMacro(InputImageDimension, unsigned int,
00073 TInputImage::ImageDimension);
00074 itkStaticConstMacro(OutputImageDimension, unsigned int,
00075 TOutputImage::ImageDimension);
00077
00079 virtual void SetImageInput( const TInputImage * image);
00080 const InputImageType * GetImageInput(void);
00082
00084 virtual void SetPathInput( const TInputPath * path);
00085 const InputPathType * GetPathInput(void);
00087
00088 protected:
00089 ImageAndPathToImageFilter();
00090 virtual ~ImageAndPathToImageFilter() {};
00091
00092 virtual void PrintSelf(std::ostream& os, Indent indent) const;
00093
00094 private:
00095 ImageAndPathToImageFilter(const Self&);
00096 void operator=(const Self&);
00097 };
00098
00099 }
00100
00101 #ifndef ITK_MANUAL_INSTANTIATION
00102 #include "itkImageAndPathToImageFilter.txx"
00103 #endif
00104
00105 #endif
00106