open_iA 2025.6
Loading...
Searching...
No Matches
iAITKIO.cpp File Reference
#include "iAITKIO.h"
#include "iALog.h"
#include "iAProgress.h"
#include "iATypedCallHelper.h"
#include "iAExtendedTypedCallHelper.h"
#include <itkImage.h>
#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>
#include <itkImageIOFactory.h>
#include <QFileInfo>
#include <QString>

Namespaces

namespace  iAITKIO
 Support for loading and storing images via ITK's file I/O.
 

Functions

template<class T>
void iAITKIO::read_image_template (QString const &f, ImagePointer &image, bool releaseFlag, iAProgress const *progress)
 
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.
 
template<class T>
void iAITKIO::write_image_template (bool comp, QString const &fileName, ImagePtr image, iAProgress const *progress)
 
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.