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: 2006/12/09 05:06:19 $
00007   Version:   $Revision: 1.1 $
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(Self, 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 *);
00069   
00070 #ifdef ITK_USE_CONCEPT_CHECKING
00071 
00072   // Check if the pixeltype is a scalar, (native pixel type).
00073 
00075 #endif
00076 
00077 protected:
00078   ImageToVectorImageFilter();
00079   ~ImageToVectorImageFilter() {};
00080   void PrintSelf(std::ostream& os, Indent indent) const;
00081 
00082   virtual void AllocateOutputs();
00083   virtual void BeforeThreadedGenerateData();
00084   virtual void ThreadedGenerateData( const RegionType &outputRegionForThread, int);
00085 };
00086 
00087 }
00088 
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkImageToVectorImageFilter.txx"
00091 #endif
00092 
00093 #endif
00094 
00095 

Generated at Tue Jul 29 20:50:28 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000