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: 2010-01-20 23:54:11 $
00007   Version:   $Revision: 1.8 $
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   
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   /* typedef for the polyline type */
00078   typedef TPolyline    PolylineType;
00079   
00080   /* typedef for the output image */
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   /* Generate Data */
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&); //purposely not implemented
00114   void operator=(const Self&); //purposely not implemented
00115 
00116 };
00117 
00118 } // end namespace itk
00119 
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #include "itkPolylineMask2DImageFilter.txx"
00122 #endif
00123 
00124 #endif
00125 

Generated at Mon Jul 12 2010 19:28:57 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000