00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2008-02-07 17:17:57 +0100 (Do, 07 Feb 2008) $ 00006 Version: $Revision: 11989 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html 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 00018 00019 #ifndef __mitkTensorImage__h 00020 #define __mitkTensorImage__h 00021 00022 #include "mitkImage.h" 00023 #include "itkVectorImage.h" 00024 00025 #include "MitkDiffusionImagingExports.h" 00026 00027 00028 #define TENSOR_NUM_ELEMENTS 6 00029 00030 namespace mitk 00031 { 00032 00036 class MitkDiffusionImaging_EXPORT TensorImage : public Image 00037 { 00038 00039 public: 00040 00041 mitkClassMacro( TensorImage, Image ); 00042 itkNewMacro(Self); 00043 00044 virtual vtkImageData* GetNonRgbVtkImageData(int t = 0, int n = 0); 00045 00046 virtual vtkImageData* GetVtkImageData(int t = 0, int n = 0); 00047 00048 virtual void ConstructRgbImage(); 00049 00050 protected: 00051 TensorImage(); 00052 virtual ~TensorImage(); 00053 00054 mitk::Image::Pointer m_RgbImage; 00055 00056 }; 00057 00058 } // namespace mitk 00059 00060 #endif /* __mitkTensorImage__h */