using System;
using System.Diagnostics;
namespace itk.simple.examples {
class SimpleIO {
static void example1(string inputImageFileName, string outputImageFileName) {
}
static void example2(string inputImageFileName, string outputImageFileName) {
sitk.WriteImage(image, outputImageFileName);
}
static void example3() {
VectorDouble trans = new VectorDouble( new double[] {2.0, 3.0} );
string file_name = "euler2D_cs.tfm";
sitk.WriteTransform(basic_transform, file_name);
}
static void Main(string[] args) {
try {
if (args.Length < 2) {
Console.WriteLine("Usage: SimpleIO <input> <output>");
return;
}
example1(args[0], args[1]);
example2(args[0], args[1]);
example3();
} catch (Exception ex) {
Console.WriteLine(ex);
}
}
}
}
Read an image file and return a SimpleITK Image.
void SetFileName(const PathType &fn)
Write out a SimpleITK image to the specified file location.
void Execute(const Image &)
void SetFileName(const PathType &fileName)
virtual void SetImageIO(const std::string &imageio)
Set/Get name of ImageIO to use.
The Image class for SimpleITK.
PixelIDValueEnum
Enumerated values of pixelIDs.