SimpleITK
2.0.0
|
An abract base class for image readers. More...
#include <sitkImageReaderBase.h>
Public Types | |
using | Self = ImageReaderBase |
Public Types inherited from itk::simple::ProcessObject | |
using | Self = ProcessObject |
Public Member Functions | |
ImageReaderBase () | |
~ImageReaderBase () override | |
Public Member Functions inherited from itk::simple::ProcessObject | |
virtual void | Abort () |
virtual int | AddCommand (itk::simple::EventEnum event, const std::function< void()> &func) |
Directly add a callback to observe an event. More... | |
virtual int | AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd) |
Add a Command Object to observer the event. More... | |
virtual std::string | GetName () const =0 |
virtual float | GetProgress () const |
An Active Measurement of the progress of execution. More... | |
virtual bool | HasCommand (itk::simple::EventEnum event) const |
Query of this object has any registered commands for event. More... | |
ProcessObject () | |
virtual void | RemoveAllCommands () |
Remove all registered commands. More... | |
virtual | ~ProcessObject () |
virtual void | DebugOn () |
virtual void | DebugOff () |
virtual bool | GetDebug () const |
virtual void | SetDebug (bool debugFlag) |
virtual void | SetNumberOfThreads (unsigned int n) |
virtual unsigned int | GetNumberOfThreads () const |
virtual void | SetNumberOfWorkUnits (unsigned int n) |
virtual unsigned int | GetNumberOfWorkUnits () const |
PixelIDValueEnum | m_OutputPixelType |
Set/Get The output PixelType of the image. More... | |
bool | m_LoadPrivateTags |
Set/Get The output PixelType of the image. More... | |
std::string | m_ImageIOName |
Set/Get The output PixelType of the image. More... | |
Self & | SetOutputPixelType (PixelIDValueEnum pixelID) |
Set/Get The output PixelType of the image. More... | |
PixelIDValueEnum | GetOutputPixelType () const |
Set/Get The output PixelType of the image. More... | |
virtual Image | Execute ()=0 |
Set/Get The output PixelType of the image. More... | |
std::string | ToString () const override |
Set/Get The output PixelType of the image. More... | |
virtual std::vector< std::string > | GetRegisteredImageIOs () const |
Get a vector of the names of registered itk ImageIOs. More... | |
virtual Self & | SetLoadPrivateTags (bool loadPrivateTags) |
Set/Get loading private DICOM tags into Image's MetaData. More... | |
virtual bool | GetLoadPrivateTags () const |
Set/Get The output PixelType of the image. More... | |
virtual void | LoadPrivateTagsOn () |
Set/Get The output PixelType of the image. More... | |
virtual void | LoadPrivateTagsOff () |
Set/Get The output PixelType of the image. More... | |
virtual Self & | SetImageIO (const std::string &imageio) |
Set/Get name of ImageIO to use. More... | |
virtual std::string | GetImageIO () const |
Set/Get The output PixelType of the image. More... | |
static std::string | GetImageIOFromFileName (const std::string &fileName) |
Get the automatic ImageIO from the ImageIOFactory. More... | |
itk::SmartPointer< ImageIOBase > | GetImageIOBase (const std::string &fileName) |
Set/Get The output PixelType of the image. More... | |
void | GetPixelIDFromImageIO (const std::string &fileName, PixelIDValueType &outPixelType, unsigned int &outDimensions) |
Set/Get The output PixelType of the image. More... | |
void | GetPixelIDFromImageIO (const itk::ImageIOBase *iobase, PixelIDValueType &outPixelType, unsigned int &outDimensions) |
Set/Get The output PixelType of the image. More... | |
unsigned int | GetDimensionFromImageIO (const std::string &fileName, unsigned int i) |
Set/Get The output PixelType of the image. More... | |
unsigned int | GetDimensionFromImageIO (const itk::ImageIOBase *iobase, unsigned int i) |
Set/Get The output PixelType of the image. More... | |
PixelIDValueType | ExecuteInternalReadScalar (int componentType) |
Set/Get The output PixelType of the image. More... | |
PixelIDValueType | ExecuteInternalReadVector (int componentType) |
Set/Get The output PixelType of the image. More... | |
PixelIDValueType | ExecuteInternalReadComplex (int componentType) |
Set/Get The output PixelType of the image. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::simple::ProcessObject | |
static bool | GetGlobalDefaultDebug () |
static void | GlobalDefaultDebugOff () |
static void | GlobalDefaultDebugOn () |
static void | SetGlobalDefaultDebug (bool debugFlag) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static void | SetGlobalWarningDisplay (bool flag) |
static bool | GetGlobalWarningDisplay () |
static double | GetGlobalDefaultCoordinateTolerance () |
Access the global tolerance to determine congruent spaces. More... | |
static void | SetGlobalDefaultCoordinateTolerance (double) |
Access the global tolerance to determine congruent spaces. More... | |
static double | GetGlobalDefaultDirectionTolerance () |
Access the global tolerance to determine congruent spaces. More... | |
static void | SetGlobalDefaultDirectionTolerance (double) |
Access the global tolerance to determine congruent spaces. More... | |
static bool | SetGlobalDefaultThreader (const std::string &threader) |
Set/Get the default threader used for process objects. More... | |
static std::string | GetGlobalDefaultThreader () |
Set/Get the default threader used for process objects. More... | |
static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
static unsigned int | GetGlobalDefaultNumberOfThreads () |
Set/Get the default threader used for process objects. More... | |
Protected Member Functions inherited from itk::simple::ProcessObject | |
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
virtual itk::ProcessObject * | GetActiveProcess () |
virtual void | OnActiveProcessDelete () |
virtual void | onCommandDelete (const itk::simple::Command *cmd) noexcept |
virtual void | PreUpdate (itk::ProcessObject *p) |
virtual void | RemoveITKObserver (EventCommand &e) |
Protected Member Functions inherited from itk::simple::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Static Protected Member Functions inherited from itk::simple::ProcessObject | |
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<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) |
An abract base class for image readers.
Definition at line 39 of file sitkImageReaderBase.h.
Definition at line 43 of file sitkImageReaderBase.h.
|
override |
itk::simple::ImageReaderBase::ImageReaderBase | ( | ) |
|
pure virtual |
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.
Implemented in itk::simple::ImageSeriesReader, itk::simple::ImportImageFilter, and itk::simple::ImageFileReader.
|
private |
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.
|
private |
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.
|
private |
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.
|
protected |
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.
|
protected |
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.
|
virtual |
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.
|
protected |
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.
|
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.
|
virtual |
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.
PixelIDValueEnum itk::simple::ImageReaderBase::GetOutputPixelType | ( | ) | const |
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.
|
protected |
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.
|
protected |
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.
|
virtual |
Get a vector of the names of registered itk ImageIOs.
|
virtual |
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.
|
virtual |
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.
|
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.
|
virtual |
Set/Get loading private DICOM tags into Image's MetaData.
Unknown private tags may be encoded with Base64 encoding.
Self& itk::simple::ImageReaderBase::SetOutputPixelType | ( | PixelIDValueEnum | pixelID | ) |
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.
|
overridevirtual |
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.
Reimplemented from itk::simple::ProcessObject.
Reimplemented in itk::simple::ImportImageFilter, and itk::simple::ImageSeriesReader.
|
private |
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.
Definition at line 136 of file sitkImageReaderBase.h.
|
private |
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.
Definition at line 134 of file sitkImageReaderBase.h.
|
private |
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.
Definition at line 133 of file sitkImageReaderBase.h.