Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MITKCOLOURIMAGEPROCESSOR_H
00020 #define MITKCOLOURIMAGEPROCESSOR_H
00021
00022
00023 #include <mitkImage.h>
00024 #include <itkImage.h>
00025
00026 #include <itkRGBAPixel.h>
00027 #include <mitkTransferFunction.h>
00028 #include <itkImageRegionIterator.h>
00029
00030
00031 namespace mitk
00032 {
00033
00034 class mitkColourImageProcessor
00035 {
00036
00037 public:
00038
00039 typedef itk::RGBAPixel<unsigned char> RGBAPixel;
00040 typedef itk::Image<RGBAPixel, 3> RGBAImage;
00041
00042
00043 mitkColourImageProcessor();
00044 ~mitkColourImageProcessor () ;
00045
00046 mitk::Image::Pointer convertToRGBAImage( mitk::Image::Pointer input , mitk::TransferFunction::Pointer tf );
00047 mitk::Image::Pointer convertWithBinaryToRGBAImage( mitk::Image::Pointer input1 , mitk::Image::Pointer input2 , mitk::TransferFunction::Pointer tf );
00048 mitk::Image::Pointer convertWithBinaryAndColorToRGBAImage( mitk::Image::Pointer input1 , mitk::Image::Pointer input2 , mitk::TransferFunction::Pointer tf, int* color );
00049 mitk::Image::Pointer combineRGBAImage( mitk::Image::Pointer input1 , mitk::Image::Pointer input2);
00050
00051
00052 private:
00053
00054 template<class TType>
00055 mitk::Image::Pointer ScalarToRGBA(itk::Image<TType, 3>* input , mitk::TransferFunction::Pointer tf);
00056
00057 template<class TType,class BType>
00058 mitk::Image::Pointer ScalarAndBinaryToRGBA(itk::Image<TType, 3>* input ,itk::Image<BType, 3>* input2 , mitk::TransferFunction::Pointer tf);
00059
00060 template<class TType,class BType>
00061 mitk::Image::Pointer ScalarAndBinaryAndColorToRGBA(itk::Image<TType, 3>* input ,itk::Image<BType, 3>* input2 , mitk::TransferFunction::Pointer tf, int * color);
00062
00063 mitk::Image::Pointer CombineRGBAImage( unsigned char* input ,unsigned char* input2, int sizeX,int sizeY,int sizeZ );
00064
00065 };
00066 }
00067 #endif