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
00046 template <class TInputImage, class TPolyline,
00047 class TOutputImage>
00048 class ITK_EXPORT PolylineMask2DImageFilter:public ImageToImageFilter<TInputImage, TOutputImage>
00049 {
00050 public:
00052 typedef PolylineMask2DImageFilter Self;
00053 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro(Self);
00059
00061 itkTypeMacro( PolylineMask2DImageFilter, ImageToImageFilter );
00062
00064 itkStaticConstMacro(NDimensions, unsigned int,
00065 TInputImage::ImageDimension);
00066 itkStaticConstMacro(NOutputDimensions, unsigned int,
00067 TOutputImage::ImageDimension);
00069
00071 typedef TInputImage InputImageType;
00072 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00073 typedef typename InputImageType::Pointer InputImagePointer;
00074 typedef typename InputImageType::RegionType InputImageRegionType;
00075 typedef typename InputImageType::PixelType InputImagePixelType;
00076
00077
00078 typedef TPolyline PolylineType;
00079
00080
00081 typedef TOutputImage OutputImageType;
00082 typedef typename OutputImageType::Pointer OutputImagePointer;
00083 typedef typename OutputImageType::RegionType OutputImageRegionType;
00084 typedef typename OutputImageType::PixelType OutputImagePixelType;
00085
00087 void SetInput1( const InputImageType * image);
00088 void SetInput2( const PolylineType * polyline);
00090
00091
00092 void GenerateData(void);
00093
00094 #ifdef ITK_USE_CONCEPT_CHECKING
00095
00096 itkConceptMacro(SameDimensionCheck,
00097 (Concept::SameDimension<NDimensions, NOutputDimensions>));
00098 itkConceptMacro(IntConvertibleOutputCheck,
00099 (Concept::Convertible<int, OutputImagePixelType>));
00100 itkConceptMacro(OutputEqualityComparableCheck,
00101 (Concept::EqualityComparable<OutputImagePixelType>));
00102 itkConceptMacro(InputConvertibleToOutputCheck,
00103 (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00104
00106 #endif
00107
00108 protected:
00109 PolylineMask2DImageFilter();
00110 virtual ~PolylineMask2DImageFilter() {};
00111
00112 private:
00113 PolylineMask2DImageFilter(const Self&);
00114 void operator=(const Self&);
00115
00116 };
00117
00118 }
00119
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #include "itkPolylineMask2DImageFilter.txx"
00122 #endif
00123
00124 #endif
00125