#include <iostream>
#include <assert.h>
#include <typeinfo>
void
example1(std::string inputImageFileName, std::string outputImageFileName)
{
}
void
example2(std::string inputImageFileName, std::string outputImageFileName)
{
}
void
example3()
{
assert(typeid(basic_transform) != typeid(read_result));
}
int
main(int argc, char * argv[])
{
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " <input> <output>\n";
return 1;
}
std::cout << "Running first I/O example\n";
example1(argv[1], argv[2]);
std::cout << "Running second I/O example\n";
example2(argv[1], argv[2]);
std::cout << "Running transform I/O example\n";
example3();
return 0;
}
Read an image file and return a SimpleITK Image.
Image Execute() override
Set/Get The output PixelType of the image.
Self & SetFileName(const PathType &fn)
Write out a SimpleITK image to the specified file location.
Self & SetFileName(const PathType &fileName)
Self & Execute(const Image &)
virtual Self & SetImageIO(const std::string &imageio)
Set/Get name of ImageIO to use.
The Image class for SimpleITK.
SITKIO_EXPORT Image ReadImage(const PathType &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
SITKIO_EXPORT void WriteImage(const Image &image, const PathType &fileName, bool useCompression=false, int compressionLevel=-1)
WriteImage is a procedural interface to the ImageFileWriter. class which is convenient for many image...
SITKCommon_EXPORT void WriteTransform(const Transform &transform, const PathType &filename)
SITKCommon_EXPORT Transform ReadTransform(const PathType &filename)