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: 2008-01-20 18:00:40 $
00007   Version:   $Revision: 1.7 $
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 InputImageConstPointer;
00068   typedef typename InputImageType::Pointer      InputImagePointer;
00069   typedef typename InputImageType::RegionType   InputImageRegionType; 
00070   typedef typename InputImageType::PixelType    InputImagePixelType; 
00071 
00072   /* typedef for the polyline type */
00073   typedef TPolyline    PolylineType;
00074   
00075   /* typedef for the output image */
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   /* Generate Data */
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&); //purposely not implemented
00109   void operator=(const Self&); //purposely not implemented
00110 
00111 };
00112 
00113 } // end namespace itk
00114 
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkPolylineMask2DImageFilter.txx"
00117 #endif
00118 
00119 #endif
00120 

Generated at Tue Sep 15 04:23:31 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000