00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkPolylineMask2DImageFilter_h
00018 #define __itkPolylineMask2DImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImageRegionIteratorWithIndex.h"
00022
00023 namespace itk
00024 {
00025
00041 template <class TInputImage, class TPolyline,
00042 class TOutputImage>
00043 class ITK_EXPORT PolylineMask2DImageFilter:public ImageToImageFilter<TInputImage, TOutputImage>
00044 {
00045 public:
00047 typedef PolylineMask2DImageFilter Self;
00048 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00049 typedef SmartPointer<Self> Pointer;
00050 typedef SmartPointer<const Self> ConstPointer;
00051
00053 itkNewMacro(Self);
00054
00056 itkTypeMacro( PolylineMask2DImageFilter, ImageToImageFilter );
00057
00059 itkStaticConstMacro(NDimensions, unsigned int,
00060 TInputImage::ImageDimension);
00061 itkStaticConstMacro(NOutputDimensions, unsigned int,
00062 TOutputImage::ImageDimension);
00064
00066 typedef TInputImage InputImageType;
00067 typedef typename InputImageType::ConstPointer InputImagePointer;
00068 typedef typename InputImageType::RegionType InputImageRegionType;
00069 typedef typename InputImageType::PixelType InputImagePixelType;
00070
00071
00072 typedef TPolyline PolylineType;
00073
00074
00075 typedef TOutputImage OutputImageType;
00076 typedef typename OutputImageType::Pointer OutputImagePointer;
00077 typedef typename OutputImageType::RegionType OutputImageRegionType;
00078 typedef typename OutputImageType::PixelType OutputImagePixelType;
00079
00081 void SetInput1( const InputImageType * image);
00082 void SetInput2( const PolylineType * polyline);
00084
00085
00086 void GenerateData(void);
00087
00088 #ifdef ITK_USE_CONCEPT_CHECKING
00089
00090 itkConceptMacro(SameDimensionCheck,
00091 (Concept::SameDimension<NDimensions, NOutputDimensions>));
00092 itkConceptMacro(IntConvertibleOutputCheck,
00093 (Concept::Convertible<int, OutputImagePixelType>));
00094 itkConceptMacro(OutputEqualityComparableCheck,
00095 (Concept::EqualityComparable<OutputImagePixelType>));
00096 itkConceptMacro(InputConvertibleToOutputCheck,
00097 (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00098
00100 #endif
00101
00102 protected:
00103 PolylineMask2DImageFilter();
00104 virtual ~PolylineMask2DImageFilter() {};
00105
00106 private:
00107 PolylineMask2DImageFilter(const Self&);
00108 void operator=(const Self&);
00109
00110 };
00111
00112 }
00113
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkPolylineMask2DImageFilter.txx"
00116 #endif
00117
00118 #endif
00119