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

itkScalarToArrayCastImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkScalarToArrayCastImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-17 20:49:55 $
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 __itkScalarToArrayCastImageFilter_h
00018 #define __itkScalarToArrayCastImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk
00023 {
00024   
00041 template <class TInputImage, class TOutputImage>
00042 class ITK_EXPORT ScalarToArrayCastImageFilter :
00043     public ImageToImageFilter< TInputImage, TOutputImage >
00044 {
00045 public:
00047   typedef ScalarToArrayCastImageFilter                     Self;
00048   typedef ImageToImageFilter< TInputImage, TOutputImage >  Superclass;
00049   typedef SmartPointer<Self>                               Pointer;
00050   typedef SmartPointer<const Self>                         ConstPointer;
00051 
00053   itkNewMacro(Self);
00054   itkTypeMacro(ScalarToArrayCastImageFilter, ImageToImageFilter);
00056 
00057   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00058   typedef typename TOutputImage::PixelType           OutputImagePixelType;
00059 
00060 #ifdef ITK_USE_CONCEPT_CHECKING
00061 
00062   itkConceptMacro(OutputHasNumericTraitsCheck,
00063     (Concept::HasNumericTraits<typename OutputImagePixelType::ValueType>));
00064   itkConceptMacro(OutputHasPixelTraitsCheck,
00065     (Concept::HasPixelTraits<OutputImagePixelType>));
00066 
00068 #endif
00069 
00070 protected:
00071   ScalarToArrayCastImageFilter();
00072   virtual ~ScalarToArrayCastImageFilter() {}
00073   
00074   void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread,
00075                             int threadId);
00076  
00077 private:
00078   ScalarToArrayCastImageFilter(const Self&); //purposely not implemented
00079   void operator=(const Self&); //purposely not implemented
00080 };
00081 
00082 } // end namespace itk
00083 
00084 #ifndef ITK_MANUAL_INSTANTIATION
00085 #include "itkScalarToArrayCastImageFilter.txx"
00086 #endif
00087 
00088 #endif
00089 

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