An abstract base class for image readers.
More...
#include <sitkImageReaderBase.h>
An abstract base class for image readers.
Definition at line 42 of file sitkImageReaderBase.h.
|
template<class TImageType> |
static TImageType::ConstPointer | CastImageToITK (const Image &img) |
|
template<class TPixelType, unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img) |
|
template<unsigned int VImageDimension, unsigned int VLength, template< unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< VLength >, VImageDimension > *img) |
|
template<class TImageType> |
static Image | CastITKToImage (TImageType *img) |
|
static const itk::EventObject & | GetITKEventObject (EventEnum e) |
|
template<typename T> |
static std::ostream & | ToStringHelper (std::ostream &os, const T &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const signed char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const unsigned char &v) |
|
◆ Self
◆ ~ImageReaderBase()
itk::simple::ImageReaderBase::~ImageReaderBase |
( |
| ) |
|
|
override |
◆ ImageReaderBase()
itk::simple::ImageReaderBase::ImageReaderBase |
( |
| ) |
|
◆ Execute()
virtual Image itk::simple::ImageReaderBase::Execute |
( |
| ) |
|
|
pure virtual |
◆ ExecuteInternalReadComplex()
PixelIDValueType itk::simple::ImageReaderBase::ExecuteInternalReadComplex |
( |
int | componentType | ) |
|
|
private |
◆ ExecuteInternalReadScalar()
PixelIDValueType itk::simple::ImageReaderBase::ExecuteInternalReadScalar |
( |
int | componentType | ) |
|
|
private |
◆ ExecuteInternalReadVector()
PixelIDValueType itk::simple::ImageReaderBase::ExecuteInternalReadVector |
( |
int | componentType | ) |
|
|
private |
◆ GetDimensionFromImageIO() [1/2]
unsigned int itk::simple::ImageReaderBase::GetDimensionFromImageIO |
( |
const itk::ImageIOBase * | iobase, |
|
|
unsigned int | i ) |
|
protected |
◆ GetDimensionFromImageIO() [2/2]
unsigned int itk::simple::ImageReaderBase::GetDimensionFromImageIO |
( |
const PathType & | filename, |
|
|
unsigned int | i ) |
|
protected |
◆ GetImageIO()
virtual std::string itk::simple::ImageReaderBase::GetImageIO |
( |
| ) |
const |
|
virtual |
Set/Get name of ImageIO to use.
An option to override the automatically detected ImageIO used to read the image. The available ImageIOs are listed by the GetRegisteredImageIOs method. If the ImageIO can not be constructed an exception will be generated. If the ImageIO can not read the file an exception will be generated.
The default value is an empty string (""). This indicates that the ImageIO will be automatically determined by the ITK ImageIO factory mechanism.
◆ GetImageIOBase()
◆ GetImageIOFromFileName()
static std::string itk::simple::ImageReaderBase::GetImageIOFromFileName |
( |
const PathType & | fileName | ) |
|
|
static |
Get the automatic ImageIO from the ImageIOFactory.
Returns the name of ImageIO automatically detected to read the file. The file is required to exist, and the file may be opened and/or the file extension examined. If an error is encountered such as the file does not exist, then an empty string ("") will be returned.
◆ GetLoadPrivateTags()
virtual bool itk::simple::ImageReaderBase::GetLoadPrivateTags |
( |
| ) |
const |
|
virtual |
Set/Get loading private DICOM tags into Image's MetaData.
Unknown private tags may be encoded with Base64 encoding.
◆ GetOutputPixelType()
Set/Get The output PixelType of the image.
By default the value is sitkUnknown, which enable the output pixel type to be same as the file. If the pixel type is specified then the itk::ConvertPixelBuffer will be used to convert the pixels.
◆ GetPixelIDFromImageIO() [1/2]
◆ GetPixelIDFromImageIO() [2/2]
void itk::simple::ImageReaderBase::GetPixelIDFromImageIO |
( |
const PathType & | fileName, |
|
|
PixelIDValueType & | outPixelType, |
|
|
unsigned int & | outDimensions ) |
|
protected |
◆ GetRegisteredImageIOs()
virtual std::vector< std::string > itk::simple::ImageReaderBase::GetRegisteredImageIOs |
( |
| ) |
const |
|
virtual |
◆ LoadPrivateTagsOff()
virtual void itk::simple::ImageReaderBase::LoadPrivateTagsOff |
( |
| ) |
|
|
virtual |
Set/Get loading private DICOM tags into Image's MetaData.
Unknown private tags may be encoded with Base64 encoding.
◆ LoadPrivateTagsOn()
virtual void itk::simple::ImageReaderBase::LoadPrivateTagsOn |
( |
| ) |
|
|
virtual |
Set/Get loading private DICOM tags into Image's MetaData.
Unknown private tags may be encoded with Base64 encoding.
◆ SetImageIO()
virtual Self & itk::simple::ImageReaderBase::SetImageIO |
( |
const std::string & | imageio | ) |
|
|
virtual |
Set/Get name of ImageIO to use.
An option to override the automatically detected ImageIO used to read the image. The available ImageIOs are listed by the GetRegisteredImageIOs method. If the ImageIO can not be constructed an exception will be generated. If the ImageIO can not read the file an exception will be generated.
The default value is an empty string (""). This indicates that the ImageIO will be automatically determined by the ITK ImageIO factory mechanism.
- Examples
- ImageIOSelection/ImageIOSelection.cs, ImageIOSelection/ImageIOSelection.cxx, SimpleIO/SimpleIO.cs, and SimpleIO/SimpleIO.cxx.
◆ SetLoadPrivateTags()
virtual Self & itk::simple::ImageReaderBase::SetLoadPrivateTags |
( |
bool | loadPrivateTags | ) |
|
|
virtual |
Set/Get loading private DICOM tags into Image's MetaData.
Unknown private tags may be encoded with Base64 encoding.
◆ SetOutputPixelType()
◆ ToString()
std::string itk::simple::ImageReaderBase::ToString |
( |
| ) |
const |
|
overridevirtual |
◆ m_ImageIOName
std::string itk::simple::ImageReaderBase::m_ImageIOName |
|
private |
◆ m_LoadPrivateTags
bool itk::simple::ImageReaderBase::m_LoadPrivateTags |
|
private |
◆ m_OutputPixelType
The documentation for this class was generated from the following file: