13 #ifndef mitkITKImageImport_h
14 #define mitkITKImageImport_h
16 #include <itkImageToImageFilterDetail.h>
39 template <
class TInputImage>
44 itkFactorylessNewMacro(Self);
71 using itk::ProcessObject::SetInput;
105 void SetNthOutput(DataObjectPointerArraySizeType num, itk::DataObject *output)
override;
109 typedef itk::ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(InputImageDimension),
110 itkGetStaticConstMacro(RegionDimension)>
137 template <
typename ItkOutputImageType>
174 template <
typename ItkOutputImageType>
200 template <
typename ItkOutputImageType>
227 template <
typename ItkOutputImageType>
253 template <
typename ItkOutputImageType>
261 #ifndef MITK_MANUAL_INSTANTIATION
262 #include <mitkITKImageImport.tpp>
Abstract base class describing the geometry of a data object.
Pipelined import of itk::Image.
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
ITKImageImport()
Constructor.
InputImageType::ConstPointer InputImageConstPointer
InputImageType::Pointer InputImagePointer
void GenerateOutputInformation() override
Compute output information from the input ITK image.
void GenerateInputRequestedRegion() override
Set the requested region on the input image.
mitkClassMacro(ITKImageImport, ImageSource)
void SetNthOutput(DataObjectPointerArraySizeType num, itk::DataObject *output) override
Override to set the nth output.
InputImageType::RegionType InputImageRegionType
itk::ImageToImageFilterDetail::ImageRegionCopier< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(RegionDimension)> OutputToInputRegionCopierType
void GenerateData() override
Perform the actual data import from the ITK image.
void SetGeometry(const BaseGeometry *geometry)
Set the Geometry of the result image (optional).
~ITKImageImport() override
Destructor.
BaseGeometry::Pointer m_Geometry
itkStaticConstMacro(RegionDimension, unsigned int, mitk::SlicedData::RegionDimension)
void SetInput(const InputImageType *input)
Set the input itk::Image of this image importer.
TInputImage InputImageType
The type of the input image.
InputImageType::PixelType InputImagePixelType
InputImageType * GetInput(void)
Get the input itk::Image of this image importer.
Superclass of all classes generating Images (instances of class Image) as output.
Image class for storing multi-dimensional medical image data.
Image::Pointer GrabItkImageMemoryChannel(ItkOutputImageType *itkimage, const TimeGeometry *geometry=nullptr, mitk::Image *mitkImage=nullptr, bool update=true)
Grab the memory of an itk::Image and put it into an mitk::Image channel.
Image::Pointer GrabItkImageMemory(itk::SmartPointer< ItkOutputImageType > &itkimage, mitk::Image *mitkImage=nullptr, const BaseGeometry *geometry=nullptr, bool update=true)
Grab the memory of an itk::Image (with a specific type) and put it into an mitk::Image.
Image::Pointer ImportItkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, const BaseGeometry *geometry=nullptr, bool update=true)
Import an itk::Image (with a specific type) as an mitk::Image.
Find image slices visible on a given plane.