Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ImageToItk< TOutputImage > Class Template Reference

#include <mitkImageToItk.h>

Inheritance diagram for mitk::ImageToItk< TOutputImage >:
Collaboration diagram for mitk::ImageToItk< TOutputImage >:

Public Types

typedef ImageToItk Self
 
typedef itk::ImageSource< TOutputImage > Superclass
 
typedef itk::SmartPointer< Self > Pointer
 
typedef itk::SmartPointer< const Self > ConstPointer
 
typedef Superclass::OutputImageRegionType OutputImageRegionType
 Superclass typedefs. More...
 
typedef mitk::Image InputImageType
 Some convenient typedefs. More...
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef SlicedData::RegionType InputImageRegionType
 
typedef TOutputImage::SizeType SizeType
 
typedef TOutputImage::IndexType IndexType
 
typedef TOutputImage::RegionType RegionType
 
typedef TOutputImage::PixelType PixelType
 
typedef TOutputImage::InternalPixelType InternalPixelType
 
typedef TOutputImage::PixelContainer PixelContainer
 

Public Member Functions

Pointer Clone () const
 
virtual void SetInput (mitk::Image *input)
 Set the MITK image as input (non-const version). More...
 
virtual void SetInput (const mitk::Image *input)
 Set the MITK image as input (const version). More...
 
void UpdateOutputInformation () override
 Update the output information from the MITK image. More...
 
virtual int GetChannel ()
 Get the channel number to extract. More...
 
virtual void SetChannel (int _arg)
 Set the channel number to extract. More...
 
virtual void SetCopyMemFlag (bool _arg)
 Set whether to copy memory instead of referencing it. More...
 
virtual bool GetCopyMemFlag ()
 Get whether memory is copied instead of referenced. More...
 
virtual void CopyMemFlagOn ()
 Toggle memory copy on/off. More...
 
virtual void CopyMemFlagOff ()
 
virtual void SetOptions (int _arg)
 Set the image accessor options (see ImageAccessorBase). More...
 
virtual int GetOptions ()
 Get the image accessor options. More...
 

Static Public Member Functions

static Pointer New ()
 Method for creation through the object factory. More...
 

Protected Member Functions

mitk::Image * GetInput (void)
 Get the MITK image input (non-const). More...
 
const mitk::Image * GetInput () const
 Get the MITK image input (const). More...
 
 ImageToItk ()
 
 ~ImageToItk () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 Print self information to the given stream. More...
 
void GenerateData () override
 Generate the ITK image data from the MITK image input. More...
 
void GenerateOutputInformation () override
 Set up the output information (size, spacing, origin, direction) from the MITK image. More...
 

Protected Attributes

mitk::Image::Pointer m_MitkImage
 
mitk::ImageDataItem::Pointer m_ImageDataItem
 

Detailed Description

template<class TOutputImage>
class mitk::ImageToItk< TOutputImage >

Create itk::ImageSource for mitk::Image

Warning
2D MITK images will get a 2D identity matrix in ITK

Definition at line 33 of file mitkImageToItk.h.

Member Typedef Documentation

◆ ConstPointer

template<class TOutputImage >
typedef itk::SmartPointer<const Self> mitk::ImageToItk< TOutputImage >::ConstPointer

Definition at line 43 of file mitkImageToItk.h.

◆ IndexType

template<class TOutputImage >
typedef TOutputImage::IndexType mitk::ImageToItk< TOutputImage >::IndexType

Definition at line 58 of file mitkImageToItk.h.

◆ InputImageConstPointer

template<class TOutputImage >
typedef InputImageType::ConstPointer mitk::ImageToItk< TOutputImage >::InputImageConstPointer

Definition at line 55 of file mitkImageToItk.h.

◆ InputImagePointer

template<class TOutputImage >
typedef InputImageType::Pointer mitk::ImageToItk< TOutputImage >::InputImagePointer

Definition at line 54 of file mitkImageToItk.h.

◆ InputImageRegionType

template<class TOutputImage >
typedef SlicedData::RegionType mitk::ImageToItk< TOutputImage >::InputImageRegionType

Definition at line 56 of file mitkImageToItk.h.

◆ InputImageType

template<class TOutputImage >
typedef mitk::Image mitk::ImageToItk< TOutputImage >::InputImageType

Some convenient typedefs.

Definition at line 53 of file mitkImageToItk.h.

◆ InternalPixelType

template<class TOutputImage >
typedef TOutputImage::InternalPixelType mitk::ImageToItk< TOutputImage >::InternalPixelType

Definition at line 61 of file mitkImageToItk.h.

◆ OutputImageRegionType

template<class TOutputImage >
typedef Superclass::OutputImageRegionType mitk::ImageToItk< TOutputImage >::OutputImageRegionType

Superclass typedefs.

Definition at line 50 of file mitkImageToItk.h.

◆ PixelContainer

template<class TOutputImage >
typedef TOutputImage::PixelContainer mitk::ImageToItk< TOutputImage >::PixelContainer

Definition at line 62 of file mitkImageToItk.h.

◆ PixelType

template<class TOutputImage >
typedef TOutputImage::PixelType mitk::ImageToItk< TOutputImage >::PixelType

Definition at line 60 of file mitkImageToItk.h.

◆ Pointer

template<class TOutputImage >
typedef itk::SmartPointer<Self> mitk::ImageToItk< TOutputImage >::Pointer

Definition at line 42 of file mitkImageToItk.h.

◆ RegionType

template<class TOutputImage >
typedef TOutputImage::RegionType mitk::ImageToItk< TOutputImage >::RegionType

Definition at line 59 of file mitkImageToItk.h.

◆ Self

template<class TOutputImage >
typedef ImageToItk mitk::ImageToItk< TOutputImage >::Self

Definition at line 40 of file mitkImageToItk.h.

◆ SizeType

template<class TOutputImage >
typedef TOutputImage::SizeType mitk::ImageToItk< TOutputImage >::SizeType

Definition at line 57 of file mitkImageToItk.h.

◆ Superclass

template<class TOutputImage >
typedef itk::ImageSource<TOutputImage> mitk::ImageToItk< TOutputImage >::Superclass

Definition at line 41 of file mitkImageToItk.h.

Constructor & Destructor Documentation

◆ ImageToItk()

template<class TOutputImage >
mitk::ImageToItk< TOutputImage >::ImageToItk ( )
inlineprotected

Definition at line 111 of file mitkImageToItk.h.

◆ ~ImageToItk()

template<class TOutputImage >
mitk::ImageToItk< TOutputImage >::~ImageToItk ( )
inlineoverrideprotected

Definition at line 112 of file mitkImageToItk.h.

Member Function Documentation

◆ Clone()

template<class TOutputImage >
Pointer mitk::ImageToItk< TOutputImage >::Clone ( ) const

◆ CopyMemFlagOff()

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::CopyMemFlagOff ( )
virtual

◆ CopyMemFlagOn()

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::CopyMemFlagOn ( )
virtual

Toggle memory copy on/off.

◆ GenerateData()

template<class TOutputImage >
void mitk::ImageToItk< TOutputImage >::GenerateData ( )
overrideprotected

Generate the ITK image data from the MITK image input.

◆ GenerateOutputInformation()

template<class TOutputImage >
void mitk::ImageToItk< TOutputImage >::GenerateOutputInformation ( )
overrideprotected

Set up the output information (size, spacing, origin, direction) from the MITK image.

◆ GetChannel()

template<class TOutputImage >
virtual int mitk::ImageToItk< TOutputImage >::GetChannel ( )
virtual

Get the channel number to extract.

◆ GetCopyMemFlag()

template<class TOutputImage >
virtual bool mitk::ImageToItk< TOutputImage >::GetCopyMemFlag ( )
virtual

Get whether memory is copied instead of referenced.

◆ GetInput() [1/2]

template<class TOutputImage >
const mitk::Image* mitk::ImageToItk< TOutputImage >::GetInput ( ) const
protected

Get the MITK image input (const).

◆ GetInput() [2/2]

template<class TOutputImage >
mitk::Image* mitk::ImageToItk< TOutputImage >::GetInput ( void  )
protected

Get the MITK image input (non-const).

◆ GetOptions()

template<class TOutputImage >
virtual int mitk::ImageToItk< TOutputImage >::GetOptions ( )
virtual

Get the image accessor options.

◆ New()

template<class TOutputImage >
static Pointer mitk::ImageToItk< TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<class TOutputImage >
void mitk::ImageToItk< TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Print self information to the given stream.

◆ SetChannel()

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::SetChannel ( int  _arg)
virtual

Set the channel number to extract.

◆ SetCopyMemFlag()

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::SetCopyMemFlag ( bool  _arg)
virtual

Set whether to copy memory instead of referencing it.

◆ SetInput() [1/2]

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::SetInput ( const mitk::Image *  input)
virtual

Set the MITK image as input (const version).

Locks the image for read-only access.

Parameters
inputThe MITK image to convert.

◆ SetInput() [2/2]

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::SetInput ( mitk::Image *  input)
virtual

Set the MITK image as input (non-const version).

Locks the image for read/write access.

Parameters
inputThe MITK image to convert.

◆ SetOptions()

template<class TOutputImage >
virtual void mitk::ImageToItk< TOutputImage >::SetOptions ( int  _arg)
virtual

Set the image accessor options (see ImageAccessorBase).

◆ UpdateOutputInformation()

template<class TOutputImage >
void mitk::ImageToItk< TOutputImage >::UpdateOutputInformation ( )
override

Update the output information from the MITK image.

Member Data Documentation

◆ m_ImageDataItem

template<class TOutputImage >
mitk::ImageDataItem::Pointer mitk::ImageToItk< TOutputImage >::m_ImageDataItem
protected

Definition at line 37 of file mitkImageToItk.h.

◆ m_MitkImage

template<class TOutputImage >
mitk::Image::Pointer mitk::ImageToItk< TOutputImage >::m_MitkImage
protected

Definition at line 36 of file mitkImageToItk.h.


The documentation for this class was generated from the following file: