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

itkImageToVectorImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToVectorImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-20 16:21:47 $
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 __itkImageToVectorImageFilter_h
00018 #define __itkImageToVectorImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkVectorContainer.h"
00022 #include "itkVectorImage.h"
00023 
00024 namespace itk {
00043 template< class TInputImage >
00044 class ITK_EXPORT ImageToVectorImageFilter :
00045   public ImageToImageFilter< TInputImage, 
00046           VectorImage< ITK_TYPENAME TInputImage::InternalPixelType,
00047                        ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00048 {
00049 public:
00050 
00051   typedef ImageToVectorImageFilter                  Self;
00052   typedef SmartPointer<Self>                        Pointer;
00053   typedef SmartPointer<const Self>                  ConstPointer;
00054   itkNewMacro(Self);  
00055   itkTypeMacro(ImageToVectorImageFilter, ImageToImageFilter);
00056 
00057   itkStaticConstMacro(Dimension, unsigned int, TInputImage::ImageDimension);
00058 
00059   typedef typename TInputImage::InternalPixelType   PixelType;
00060   typedef VectorImage< PixelType, 
00061               itkGetStaticConstMacro(Dimension) >   OutputImageType;
00062   typedef ImageToImageFilter< TInputImage, 
00063                               OutputImageType >     Superclass;
00064   typedef typename Superclass::InputImageType       InputImageType;
00065    
00066   typedef typename Superclass::InputImageRegionType RegionType;
00067 
00068   virtual void SetNthInput(unsigned int idx, const InputImageType * inputImage)
00069   { this->SetInput(idx, inputImage); }
00070 
00071 #ifdef ITK_USE_CONCEPT_CHECKING
00072 
00073   // Check if the pixeltype is a scalar, (native pixel type).
00074 
00076 #endif
00077 
00078 protected:
00079   ImageToVectorImageFilter();
00080 
00081   virtual void GenerateOutputInformation(void);
00082   virtual void BeforeThreadedGenerateData();
00083   virtual void ThreadedGenerateData( const RegionType &outputRegionForThread, int);
00084   virtual void SetNthInput(unsigned int num, DataObject *input)
00085     {
00086     Superclass::SetNthInput(num, input);
00087     }
00088 private:
00089   ImageToVectorImageFilter(const Self&); //purposely not implemented
00090   void operator=(const Self&); //purposely not implemented
00091    
00092 };
00093 }
00094 
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkImageToVectorImageFilter.txx"
00097 #endif
00098 
00099 #endif
00100 

Generated at Tue Sep 15 03:33:13 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000