21 #include "itkDiffusionTensor3D.h"
24 #include "vtkImageData.h"
42 if(m_RgbImage.IsNull())
46 return m_RgbImage->GetVtkImageData(t,n);
51 if(m_RgbImage.IsNull())
55 return m_RgbImage->GetVtkImageData(t,n);
60 typedef itk::Image<itk::DiffusionTensor3D<float>,3>
ImageType;
66 filter->SetInput(itkvol);
70 image->InitializeByItk( filter->GetOutput() );
71 image->SetVolume( filter->GetOutput()->GetBufferPointer() );
77 return Superclass::GetVtkImageData(t,n);
itk::SmartPointer< Self > Pointer
virtual vtkImageData * GetVtkImageData(int t=0, int n=0) override
Get a volume at a specific time t of channel n as a vtkImageData.
virtual vtkImageData * GetNonRgbVtkImageData(int t=0, int n=0)
map::core::discrete::Elements< 3 >::InternalImageType ImageType
Image class for storing images.
mitk::Image::Pointer m_RgbImage
virtual void ConstructRgbImage() const
void MITKCORE_EXPORT CastToItkImage(const mitk::Image *mitkImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
Cast an mitk::Image to an itk::Image with a specific type.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.