#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;
}
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...