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

itkConvertPixelBuffer.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkConvertPixelBuffer.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/01/08 00:39:04 $ 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 __itkConvertPixelBuffer_h 00018 #define __itkConvertPixelBuffer_h 00019 00020 #include "itkObject.h" 00021 00022 namespace itk 00023 { 00033 template < 00034 typename InputPixelType, 00035 typename OutputPixelType, 00036 class OutputConvertTraits 00037 > 00038 class ConvertPixelBuffer 00039 { 00040 public: 00042 typedef typename OutputConvertTraits::ComponentType OutputComponentType; 00043 00045 static void Convert(InputPixelType* inputData, 00046 int inputNumberOfComponents, 00047 OutputPixelType* outputData , int size); 00048 protected: 00051 static void ConvertGrayToGray(InputPixelType* inputData, 00052 OutputPixelType* outputData , int size); 00057 static void ConvertRGBToGray(InputPixelType* inputData, 00058 OutputPixelType* outputData , int size); 00059 00064 static void ConvertRGBAToGray(InputPixelType* inputData, 00065 OutputPixelType* outputData , int size); 00066 static void ConvertMultiComponentToGray(InputPixelType* inputData, 00067 int inputNumberOfComponents, 00068 OutputPixelType* outputData , 00069 int size); 00070 00074 static void ConvertGrayToRGB(InputPixelType* inputData, 00075 OutputPixelType* outputData , int size); 00077 static void ConvertRGBToRGB(InputPixelType* inputData, 00078 OutputPixelType* outputData , int size); 00080 static void ConvertRGBAToRGB(InputPixelType* inputData, 00081 OutputPixelType* outputData , int size); 00090 static void ConvertMultiComponentToRGB(InputPixelType* inputData, 00091 int inputNumberOfComponents, 00092 OutputPixelType* outputData , 00093 int size); 00094 00096 static void ConvertGrayToRGBA(InputPixelType* inputData, 00097 OutputPixelType* outputData , int size); 00098 static void ConvertRGBToRGBA(InputPixelType* inputData, 00099 OutputPixelType* outputData , int size); 00100 static void ConvertRGBAToRGBA(InputPixelType* inputData, 00101 OutputPixelType* outputData , int size); 00102 static void ConvertMultiComponentToRGBA(InputPixelType* inputData, 00103 int inputNumberOfComponents, 00104 OutputPixelType* outputData , 00105 int size); 00106 00107 private: 00108 ConvertPixelBuffer(); 00109 ~ConvertPixelBuffer(); 00110 }; 00111 } //namespace ITK 00112 00113 00114 #ifndef ITK_MANUAL_INSTANTIATION 00115 #include "itkConvertPixelBuffer.txx" 00116 #endif 00117 00118 #endif // __itkConvertPixelBuffer_h

Generated at Sun Apr 1 02:26:25 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000