itkPolylineMask2DImageFilter.h
Go to the documentation of this file.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 InputImageConstPointer;
00068 typedef typename InputImageType::Pointer InputImagePointer;
00069 typedef typename InputImageType::RegionType InputImageRegionType;
00070 typedef typename InputImageType::PixelType InputImagePixelType;
00071
00072
00073 typedef TPolyline PolylineType;
00074
00075
00076 typedef TOutputImage OutputImageType;
00077 typedef typename OutputImageType::Pointer OutputImagePointer;
00078 typedef typename OutputImageType::RegionType OutputImageRegionType;
00079 typedef typename OutputImageType::PixelType OutputImagePixelType;
00080
00082 void SetInput1( const InputImageType * image);
00083 void SetInput2( const PolylineType * polyline);
00085
00086
00087 void GenerateData(void);
00088
00089 #ifdef ITK_USE_CONCEPT_CHECKING
00090
00091 itkConceptMacro(SameDimensionCheck,
00092 (Concept::SameDimension<NDimensions, NOutputDimensions>));
00093 itkConceptMacro(IntConvertibleOutputCheck,
00094 (Concept::Convertible<int, OutputImagePixelType>));
00095 itkConceptMacro(OutputEqualityComparableCheck,
00096 (Concept::EqualityComparable<OutputImagePixelType>));
00097 itkConceptMacro(InputConvertibleToOutputCheck,
00098 (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00099
00101 #endif
00102
00103 protected:
00104 PolylineMask2DImageFilter();
00105 virtual ~PolylineMask2DImageFilter() {};
00106
00107 private:
00108 PolylineMask2DImageFilter(const Self&);
00109 void operator=(const Self&);
00110
00111 };
00112
00113 }
00114
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkPolylineMask2DImageFilter.txx"
00117 #endif
00118
00119 #endif
00120