Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkITKImageImport_h
14 #define mitkITKImageImport_h
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);
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)>
114 template <
typename ItkOutputImageType>
154 template <
typename ItkOutputImageType>
179 template <
typename ItkOutputImageType>
205 template <
typename ItkOutputImageType>
231 template <
typename ItkOutputImageType>
239 #ifndef MITK_MANUAL_INSTANTIATION
240 #include "mitkITKImageImport.txx"
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.
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.
Superclass of all classes generating Images (instances of class Image) as output.
itk::ImageToImageFilterDetail::ImageRegionCopier< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(RegionDimension)> OutputToInputRegionCopierType
Image class for storing images.
BaseGeometry::Pointer m_Geometry
Find image slices visible on a given plane.
InputImageType::ConstPointer InputImageConstPointer
Superclass of all classes generating some kind of mitk::BaseData.
Pipelined import of itk::Image.
InputImageType::PixelType InputImagePixelType
BaseGeometry Describes the geometry of a data object.
TInputImage InputImageType
The type of the input image.
InputImageType::RegionType InputImageRegionType
#define mitkClassMacro(className, SuperClassName)
InputImageType::Pointer InputImagePointer
Image::Pointer GrabItkImageMemoryChannel(ItkOutputImageType *itkimage, const TimeGeometry *geometry=nullptr, mitk::Image *mitkImage=nullptr, bool update=true)
Grabs the memory of an itk::Image (with a specific type) and puts it into an mitk::Image.