Reads any image from file name and generates relevant data. More...
#include <cbicaITKImageInfo.h>
Public Member Functions | |
itk::ImageIOBase::IOComponentType | GetComponentType () |
Get the type of pixel in the image as an itk IOComponentType. More... | |
std::string | GetComponentTypeAsString () |
Get the type of pixel in the image as a string. More... | |
const unsigned int | GetImageDimensions () |
Get the dimensions of the specified image. More... | |
itk::SmartPointer< itk::ImageIOBase > | GetImageIOBase () |
Get the imageIOBase of the specified image. More... | |
std::vector< double > | GetImageOrigins () |
Get the Origins of the specified image. More... | |
std::vector< itk::SizeValueType > | GetImageSize () |
Get the Size of the specified image. More... | |
std::vector< itk::SizeValueType > | GetImageSpacing () |
Get the Spacing of the specified image. More... | |
std::vector< double > | GetImageSpacings () |
Get the Spacings of the specified image. More... | |
itk::ImageIOBase::IOPixelType | GetPixelType () |
Get the type of pixel in the image as an itk IOComponentType. More... | |
std::string | GetPixelTypeAsString () |
Get the type of pixel in the image as an itk IOComponentType. More... | |
ImageInfo (const std::string &fName) | |
The Constructor. More... | |
bool | IsDicom () |
Is the supplied image defined as a DICOM or not. | |
virtual | ~ImageInfo () |
The Destructor. | |
Reads any image from file name and generates relevant data.
It can give information like dimensions, pixel type, component type, spacing, etc. about the image which mitigates the requirement of explicit declration in the program.
|
explicit |
The Constructor.
Note: There the class "itk::MetaDataDictionary" does a far better job of obtaining the metadata of an image, if that is what the user requires. This function just obtains some basic information, namely, the spacing and dimensions of the image.
fName | The image file name for which information is required |
itk::ImageIOBase::IOComponentType GetComponentType | ( | ) |
Get the type of pixel in the image as an itk IOComponentType.
std::string GetComponentTypeAsString | ( | ) |
Get the type of pixel in the image as a string.
|
inline |
Get the dimensions of the specified image.
itk::SmartPointer<itk::ImageIOBase> GetImageIOBase | ( | ) |
Get the imageIOBase of the specified image.
std::vector<double> GetImageOrigins | ( | ) |
Get the Origins of the specified image.
std::vector<itk::SizeValueType> GetImageSize | ( | ) |
Get the Size of the specified image.
std::vector<itk::SizeValueType> GetImageSpacing | ( | ) |
Get the Spacing of the specified image.
std::vector<double> GetImageSpacings | ( | ) |
Get the Spacings of the specified image.
itk::ImageIOBase::IOPixelType GetPixelType | ( | ) |
Get the type of pixel in the image as an itk IOComponentType.
std::string GetPixelTypeAsString | ( | ) |
Get the type of pixel in the image as an itk IOComponentType.