23 #include "itkImageIOBase.h" 24 #include "itkImageFileReader.h" 49 explicit ImageInfo(
const std::string &fName);
84 return m_itkImageIOBase->GetNumberOfDimensions();
135 return m_dicomDetected;
139 std::string m_fileName;
140 itk::SmartPointer<itk::ImageIOBase> m_itkImageIOBase;
141 std::vector<double> m_spacings;
142 std::vector<double> m_origins;
143 std::vector<itk::SizeValueType> m_size;
144 unsigned int m_dimensions;
145 std::string m_pixelType_asString, m_IOComponentType_asString;
146 itk::ImageIOBase::IOComponentType m_IOComponentType;
147 itk::ImageIOBase::IOPixelType m_pixelType;
148 bool m_dicomDetected =
false;
149 std::vector< std::string > m_uids;
itk::ImageIOBase::IOComponentType GetComponentType()
Get the type of pixel in the image as an itk IOComponentType.
const unsigned int GetImageDimensions()
Get the dimensions of the specified image.
Definition: cbicaITKImageInfo.h:82
std::string GetPixelTypeAsString()
Get the type of pixel in the image as an itk IOComponentType.
ImageInfo(const std::string &fName)
The Constructor.
std::vector< double > GetImageSpacings()
Get the Spacings of the specified image.
itk::SmartPointer< itk::ImageIOBase > GetImageIOBase()
Get the imageIOBase of the specified image.
std::string GetComponentTypeAsString()
Get the type of pixel in the image as a string.
Reads any image from file name and generates relevant data.
Definition: cbicaITKImageInfo.h:36
itk::ImageIOBase::IOPixelType GetPixelType()
Get the type of pixel in the image as an itk IOComponentType.
std::vector< itk::SizeValueType > GetImageSpacing()
Get the Spacing of the specified image.
bool IsDicom()
Is the supplied image defined as a DICOM or not.
Definition: cbicaITKImageInfo.h:133
std::vector< double > GetImageOrigins()
Get the Origins of the specified image.
std::vector< itk::SizeValueType > GetImageSize()
Get the Size of the specified image.
virtual ~ImageInfo()
The Destructor.