17 #ifndef MITKIMAGECAST_H_HEADER_INCLUDED
18 #define MITKIMAGECAST_H_HEADER_INCLUDED
24 #include <itkVectorImage.h>
29 template <
typename TPixel,
unsigned int VImageDimension,
class ItkOutputImageType>
33 template <
typename TPixel,
unsigned int VImageDimension,
class ItkOutputImageType>
36 #endif // DOXYGEN_SKIP
56 template <
typename ItkOutputImageType>
66 template <
typename TPixelType,
unsigned int VImageDimension>
77 template <
typename ItkOutputImageType>
91 template <
typename ItkOutputImageType>
94 if (mitkoutputimage.IsNull())
98 mitkoutputimage->InitializeByItk(itkimage);
99 mitkoutputimage->SetChannel(itkimage->GetBufferPointer());
103 #endif // of MITKIMAGECAST_H_HEADER_INCLUDED
DataCollection - Class to facilitate loading/accessing structured data.
Image class for storing images.
void _CastToItkImage2Access(const itk::Image< TPixel, VImageDimension > *itkInputImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
void CastToMitkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, itk::SmartPointer< mitk::Image > &mitkoutputimage)
Cast an itk::Image (with a specific type) to an mitk::Image.
void MITKCORE_EXPORT CastToItkImage(const mitk::Image *mitkImage, itk::SmartPointer< ItkOutputImageType > &itkOutputImage)
Cast an mitk::Image to an itk::Image with a specific type.