Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
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;
71 itkGetMacro(Channel,
int);
72 itkSetMacro(Channel,
int);
74 itkSetMacro(CopyMemFlag,
bool);
75 itkGetMacro(CopyMemFlag,
bool);
76 itkBooleanMacro(CopyMemFlag);
78 itkSetMacro(Options,
int);
79 itkGetMacro(Options,
int);
82 using itk::ProcessObject::SetInput;
88 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
102 void operator=(
const Self &);
131 template <
typename TPixel,
unsigned int VDimension>
137 imagetoitk->SetInput(mitkImage);
138 imagetoitk->Update();
139 return imagetoitk->GetOutput();
166 template <
typename TPixel,
unsigned int VDimension>
172 imagetoitk->SetInput(mitkImage);
173 imagetoitk->Update();
174 return imagetoitk->GetOutput();
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "mitkImageToItk.txx"
TOutputImage::SizeType SizeType
InputImageType::Pointer InputImagePointer
itk::SmartPointer< const Self > ConstPointer
mitk::Image InputImageType
itk::SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::ImageSource< TOutputImage > Superclass
Superclass::OutputImageRegionType OutputImageRegionType
Image class for storing images.
TOutputImage::IndexType IndexType
itk::ImageRegion< RegionDimension > RegionType
mitk::Image * GetInput(void)
mitk::Image::Pointer m_MitkImage
Find image slices visible on a given plane.
itk::Image< TPixelType, VDimension > ImageType
void GenerateData() override
TOutputImage::InternalPixelType InternalPixelType
SlicedData::RegionType InputImageRegionType
TOutputImage::PixelType PixelType
virtual void SetInput(mitk::Image *input)
ImageTypeTrait< TPixel, VDimension >::ImageType::Pointer ImageToItkImage(mitk::Image *mitkImage)
Convert a MITK image to an ITK image.
InputImageType::ConstPointer InputImageConstPointer
TOutputImage::RegionType RegionType
TOutputImage::PixelContainer PixelContainer
mitk::ImageDataItem::Pointer m_ImageDataItem
void GenerateOutputInformation() override
void UpdateOutputInformation() override