13 #ifndef MITKITKIMAGEIMPORT_H_HEADER_INCLUDED_C1E4861D 14 #define MITKITKIMAGEIMPORT_H_HEADER_INCLUDED_C1E4861D 16 #include "itkImageToImageFilterDetail.h" 35 template <
class TInputImage>
40 itkFactorylessNewMacro(
Self);
51 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
52 itkStaticConstMacro(RegionDimension,
unsigned int, mitk::SlicedData::RegionDimension);
55 InputImageType *GetInput(
void);
58 void SetInput(
const InputImageType *);
59 using itk::ProcessObject::SetInput;
79 void GenerateOutputInformation()
override;
81 void GenerateInputRequestedRegion()
override;
83 void GenerateData()
override;
85 void SetNthOutput(DataObjectPointerArraySizeType num, itk::DataObject *output)
override;
89 typedef itk::ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(InputImageDimension),
90 itkGetStaticConstMacro(RegionDimension)>
111 template <
typename ItkOutputImageType>
148 template <
typename ItkOutputImageType>
168 template <
typename ItkOutputImageType>
189 template <
typename ItkOutputImageType>
197 #ifndef MITK_MANUAL_INSTANTIATION BaseGeometry::Pointer m_Geometry
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
#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.
InputImageType::ConstPointer InputImageConstPointer