13 #ifndef mitkImageToItk_h
14 #define mitkImageToItk_h
21 #include <itkImageSource.h>
32 template <
class TOutputImage>
46 itkFactorylessNewMacro(
Self);
57 typedef typename TOutputImage::SizeType
SizeType;
86 itkGetMacro(Channel,
int);
88 itkSetMacro(Channel,
int);
91 itkSetMacro(CopyMemFlag,
bool);
93 itkGetMacro(CopyMemFlag,
bool);
95 itkBooleanMacro(CopyMemFlag);
98 itkSetMacro(Options,
int);
100 itkGetMacro(Options,
int);
103 using itk::ProcessObject::SetInput;
115 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
131 void operator=(
const Self &);
160 template <
typename TPixel,
unsigned int VDimension>
166 imagetoitk->SetInput(mitkImage);
167 imagetoitk->Update();
168 return imagetoitk->GetOutput();
195 template <
typename TPixel,
unsigned int VDimension>
201 imagetoitk->SetInput(mitkImage);
202 imagetoitk->Update();
203 return imagetoitk->GetOutput();
208 #ifndef ITK_MANUAL_INSTANTIATION
209 #include <mitkImageToItk.tpp>
TOutputImage::RegionType RegionType
TOutputImage::PixelContainer PixelContainer
Superclass::OutputImageRegionType OutputImageRegionType
Superclass typedefs.
mitk::Image::Pointer m_MitkImage
itk::SmartPointer< Self > Pointer
void GenerateOutputInformation() override
Set up the output information (size, spacing, origin, direction) from the MITK image.
itk::ImageSource< TOutputImage > Superclass
mitk::ImageDataItem::Pointer m_ImageDataItem
void GenerateData() override
Generate the ITK image data from the MITK image input.
void UpdateOutputInformation() override
Update the output information from the MITK image.
TOutputImage::IndexType IndexType
virtual void SetInput(mitk::Image *input)
Set the MITK image as input (non-const version).
TOutputImage::PixelType PixelType
InputImageType::ConstPointer InputImageConstPointer
SlicedData::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Print self information to the given stream.
const mitk::Image * GetInput() const
Get the MITK image input (const).
TOutputImage::InternalPixelType InternalPixelType
mitk::Image InputImageType
Some convenient typedefs.
itk::SmartPointer< const Self > ConstPointer
mitk::Image * GetInput(void)
Get the MITK image input (non-const).
virtual void SetInput(const mitk::Image *input)
Set the MITK image as input (const version).
TOutputImage::SizeType SizeType
InputImageType::Pointer InputImagePointer
Image class for storing multi-dimensional medical image data.
itk::ImageRegion< RegionDimension > RegionType
ImageTypeTrait< TPixel, VDimension >::ImageType::Pointer ImageToItkImage(mitk::Image *mitkImage)
Convert a MITK image to an ITK image.
Find image slices visible on a given plane.
Compile-time trait that maps a pixel type and dimension to the corresponding ITK image type.
itk::Image< TPixelType, VDimension > ImageType