[Insight-users] Changing itk.Examples.Registration.Translation1.cs to work with 3d images

Carl Bateman Carl.Bateman at icr.ac.uk
Tue Apr 6 12:34:53 EDT 2010


I'm trying to change itk.Examples.Registration.Translation1.cs to work with 3d images.

I've changed the existing using statements to:
  using ImageType = itk.itkImage_UC3;
  using InterpolatorType = itk.itkLinearInterpolateImageFunction_IUC3D;
  using TransformType = itk.itkTranslationTransform_D3;
  using ResampleType = itk.itkResampleImageFilter_IUC3IUC3;
  using MetricType = itk.itkMeanSquaresImageToImageMetric_IUC3IUC3;
  using OptimizerType = itk.itkRegularStepGradientDescentOptimizer;
  using RegistrationType = itk.itkImageRegistrationMethod_IUC3IUC3;

and the transform.Translate lines to:
  transform.Translate(new itkVector(7.0, 12.0, 0.0));
and
  transform.Translate(new itkVector(0.0, 0.0, 0.0));


I'm using a raw image with a mhd header as input.

The original image has 128 slices, but the "_FIXED", "_MOVING" and "_REGISTERED" images only have 64 slices.

Additionally, the "_MOVING" and "_REGISTERED" images have a white cross through them (see attached png).

I suspect that the problem lies in the transformation, as 
  transform.Translate(new itkVector(7.0, 0.0, 0.0));
gives a horizontal line, while 
  transform.Translate(new itkVector(0.0, 12.0, 0.0));
gives a vertical line.


Is it the transformation? And if so how should it be used correctly?

Any help appreciated.

Carl Bateman


The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.

This e-mail message is confidential and for use by the addressee only.  If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mri_REGITERED.png
Type: image/png
Size: 9919 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100406/ecf43268/attachment.png>


More information about the Insight-users mailing list