[Insight-developers] How simple is SimpleITK

Bill Lorensen bill.lorensen at gmail.com
Tue Jan 25 12:27:48 EST 2011


Folks,

I just took a look at the current SimpleITK repo.

To me it looks like itk without templates and without pipelines.
Simpler indeed. And probably simpler to wrap.

However, it still is object-oriented, has namespaces, has Pointer's,
still uses set/get methods and still has an Execute method. It is
still quite ITK-like.

I thought it would be a bit more procedural and more acceptable to
non-itk(e.g. Matlab) users.

itksImage image  = itksReadImage(inputfilename);
image=itksRecursiveGaussian(image, sigma);
itksWriteImage(outputfilename);

versus

  itk::simple::Image::Pointer image;
  itk::simple::ImageFileReader reader;
  reader.SetFileName ( inputFilename);
  image = reader.Execute();

  itk::simple::RecursiveGaussianImageFilter gaussian;
  gaussian.SetSigma ( gaussian );
  image = gaussian.Execute ( image );

  itk::simple::ImageFileWriter writer;
  writer.SetFileName ( outputFilename );
  writer.Execute ( image );

Bill


More information about the Insight-developers mailing list