Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkItkPictureWrite.cpp File Reference
#include <MitkLegacyIOExports.h>
#include "mitkItkPictureWrite.h"
#include <mitkInstantiateAccessFunctions.h>
#include <itkImageSeriesWriter.h>
#include <itkNumericSeriesFileNames.h>
#include <itkRescaleIntensityImageFilter.h>
#include <itkRGBAPixel.h>

Go to the source code of this file.

Macros

#define InstantiateAccessFunction__mitkItkPictureWrite(pixelType, dim)
 
#define InstantiateAccessFunction__mitkItkPictureWriteComposite(pixelType, dim)
 

Functions

template<class WriterType >
void SetOutputNames (typename WriterType::Pointer writer, const std::string &baseFileName, unsigned int numberOfImages)
 
template<typename TPixel , unsigned int VImageDimension>
void _mitkItkPictureWrite (itk::Image< TPixel, VImageDimension > *itkImage, const std::string &fileName)
 ITK-Like method to be called for writing an single-component image using the AccessByItk Macros. More...
 
template<typename TPixel , unsigned int VImageDimension>
void _mitkItkPictureWriteComposite (itk::Image< TPixel, VImageDimension > *itkImage, const std::string &fileName)
 ITK-Like method to be called for writing an image. More...
 
 InstantiateAccessFunction (_mitkItkPictureWrite) InstantiateAccessFunctionForFixedPixelType(_mitkItkPictureWriteComposite
 

Macro Definition Documentation

#define InstantiateAccessFunction__mitkItkPictureWrite (   pixelType,
  dim 
)

Definition at line 172 of file mitkItkPictureWrite.cpp.

#define InstantiateAccessFunction__mitkItkPictureWriteComposite (   pixelType,
  dim 
)

Definition at line 175 of file mitkItkPictureWrite.cpp.

Function Documentation

template<typename TPixel , unsigned int VImageDimension>
void _mitkItkPictureWrite ( itk::Image< TPixel, VImageDimension > *  itkImage,
const std::string &  fileName 
)

ITK-Like method to be called for writing an single-component image using the AccessByItk Macros.

Parameters
itkImagean image with single-component pixel type
Deprecated:
(as of 2014_10) Use mitk::IOUtils or mitk::FileReaderRegistry instead.

Definition at line 59 of file mitkItkPictureWrite.cpp.

References MITK_ERROR, mitkThrow, and mitk::New().

Referenced by mitk::ImageWriter::WriteByITK().

template<typename TPixel , unsigned int VImageDimension>
void _mitkItkPictureWriteComposite ( itk::Image< TPixel, VImageDimension > *  itkImage,
const std::string &  fileName 
)

ITK-Like method to be called for writing an image.

Parameters
itkImagean Image with single-component or composite pixel type
Deprecated:
(as of 2014_10) Use mitk::IOUtils or mitk::FileReaderRegistry instead.

Definition at line 144 of file mitkItkPictureWrite.cpp.

References MITK_ERROR, mitkThrow, and mitk::New().

Referenced by mitk::ImageWriter::WriteByITK().

InstantiateAccessFunction ( _mitkItkPictureWrite  )
template<class WriterType >
void SetOutputNames ( typename WriterType::Pointer  writer,
const std::string &  baseFileName,
unsigned int  numberOfImages 
)

Set the filenames to the specified writer in dependace on the number of images passed in

Definition at line 30 of file mitkItkPictureWrite.cpp.

References MITK_DEBUG, and mitk::New().