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} );
sitk.WriteTransform(basic_transform,
"euler2D.tfm");
}
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.
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.
PixelIDValueEnum
Enumerated values of pixelIDs.