17 #ifndef MITKITKIMAGEIMPORT_H_HEADER_INCLUDED_C1E4861D
18 #define MITKITKIMAGEIMPORT_H_HEADER_INCLUDED_C1E4861D
20 #include "itkImageToImageFilterDetail.h"
39 template <
class TInputImage>
53 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
54 itkStaticConstMacro(RegionDimension,
unsigned int,
mitk::
SlicedData::RegionDimension);
57 InputImageType *GetInput(
void);
60 void SetInput(const InputImageType *);
61 using
itk::ProcessObject::SetInput;
79 virtual ~ITKImageImport();
81 virtual
void GenerateOutputInformation() override;
83 virtual
void GenerateInputRequestedRegion() override;
85 virtual
void GenerateData() override;
87 virtual
void SetNthOutput(DataObjectPointerArraySizeType num,
itk::DataObject *output) override;
91 typedef
itk::ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(InputImageDimension),
92 itkGetStaticConstMacro(RegionDimension)>
113 template <typename ItkOutputImageType>
150 template <typename ItkOutputImageType>
170 template <typename ItkOutputImageType>
191 template <typename ItkOutputImageType>
199 #ifndef MITK_MANUAL_INSTANTIATION
InputImageType::PixelType InputImagePixelType
Superclass of all classes generating Images (instances of class Image) as output. ...
TInputImage InputImageType
The type of the input image.
InputImageType::RegionType InputImageRegionType
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
Pipelined import of itk::Image.
Image::Pointer ImportItkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, const BaseGeometry *geometry=nullptr, bool update=true)
Imports an itk::Image (with a specific type) as an mitk::Image.Instantiates instance of ITKImageImpor...
Image::Pointer GrabItkImageMemory(itk::SmartPointer< ItkOutputImageType > &itkimage, mitk::Image *mitkImage=nullptr, const BaseGeometry *geometry=nullptr, bool update=true)
Grabs the memory of an itk::Image (with a specific type) and puts it into an mitk::Image.The memory is managed by the mitk::Image after calling this function. The itk::Image remains valid until the mitk::Image decides to free the memory.
InputImageType::Pointer InputImagePointer
Super class of data objects consisting of slices.
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
itk::ImageToImageFilterDetail::ImageRegionCopier< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(RegionDimension)> OutputToInputRegionCopierType
BaseGeometry Describes the geometry of a data object.
Class for defining the data type of pixels.
InputImageType::ConstPointer InputImageConstPointer