Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkPolylineMask2DImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPolylineMask2DImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/07/05 19:42:11 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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   /* typedef for the polyline type */
00072   typedef TPolyline    PolylineType;
00073   
00074   /* typedef for the output image */
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   /* Generate Data */
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&); //purposely not implemented
00108   void operator=(const Self&); //purposely not implemented
00109 
00110 };
00111 
00112 } // end namespace itk
00113 
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkPolylineMask2DImageFilter.txx"
00116 #endif
00117 
00118 #endif
00119 

Generated at Sun Sep 23 13:54:50 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000