|
open_iA 2024.9
|
Support for loading and storing images via ITK's file I/O. More...
Typedefs | |
| using | ImageBaseType = itk::ImageBase<Dim> |
| using | ImagePointer = ImageBaseType::Pointer |
| using | ImagePtr = ImageBaseType* |
| using | PixelType = itk::CommonEnums::IOPixel |
| merge with defines -> DIM | |
| using | ScalarType = itk::CommonEnums::IOComponent |
Functions | |
| template<class T > | |
| void | read_image_template (QString const &f, ImagePointer &image, bool releaseFlag, iAProgress const *progress) |
| ImagePointer | readFile (QString const &fileName, PixelType &pixelType, ScalarType &scalarType, bool releaseFlag, iAProgress const *progress=nullptr) |
| Use ITK's file IO to read files from a given file name, returning its pixel and scalar type. | |
| template<class T > | |
| void | write_image_template (bool comp, QString const &fileName, ImagePtr image, iAProgress const *progress) |
| void | writeFile (QString const &fileName, ImagePtr image, ScalarType scalarType, bool useCompression=false, iAProgress const *progress=nullptr) |
| Use ITK's file IO to write an image to a file. | |
Support for loading and storing images via ITK's file I/O.
| using iAITKIO::ImageBaseType = itk::ImageBase<Dim> |
| using iAITKIO::ImagePointer = ImageBaseType::Pointer |
| using iAITKIO::ImagePtr = ImageBaseType* |
| using iAITKIO::PixelType = itk::CommonEnums::IOPixel |
merge with defines -> DIM
| using iAITKIO::ScalarType = itk::CommonEnums::IOComponent |
| void iAITKIO::read_image_template | ( | QString const & | f, |
| ImagePointer & | image, | ||
| bool | releaseFlag, | ||
| iAProgress const * | progress ) |
| iAbase_API ImagePointer iAITKIO::readFile | ( | QString const & | fileName, |
| PixelType & | pixelType, | ||
| ScalarType & | scalarType, | ||
| bool | releaseFlag, | ||
| iAProgress const * | progress = nullptr ) |
Use ITK's file IO to read files from a given file name, returning its pixel and scalar type.
| [in] | fileName | the name of the file to read |
| [out] | pixelType | set to the pixel type of the file that has been read |
| [out] | scalarType | set to the scalar type of pixel values in the file that has been read |
| [in] | releaseFlag | whether or not to set the release flag on the file reader |
| [in] | progress | optional progress reporting capabilities via iAProgress |
| void iAITKIO::write_image_template | ( | bool | comp, |
| QString const & | fileName, | ||
| ImagePtr | image, | ||
| iAProgress const * | progress ) |
| iAbase_API void iAITKIO::writeFile | ( | QString const & | fileName, |
| ImagePtr | image, | ||
| ScalarType | scalarType, | ||
| bool | useCompression = false, | ||
| iAProgress const * | progress = nullptr ) |
Use ITK's file IO to write an image to a file.
| [in] | fileName | the name of the file to write |
| [in] | image | the image to write |
| [in] | scalarType | the scalar type of pixel values in the file to write |
| [in] | useCompression | whether the file should be compressed (if the file type specified via extension in fileName parameter supports it) |
| [in] | progress | optional progress reporting capabilities via iAProgress |