Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
DOC: Remove misleading comment as suggested by @ascourtas in #150
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspermarstal committed Nov 17, 2017
1 parent e7593f9 commit 33a6bbb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/Sphinx/PointBasedRegistration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The point set are specified as text files. They can either be in `VTK pointdata
180.4 -18.1 78.9

Transforming Point Sets
--------------------------------
-----------------------

We can apply a transformation computed with SimpleElastix to a point set with SimpleTransformix.

Expand All @@ -62,7 +62,8 @@ We can apply a transformation computed with SimpleElastix to a point set with Si

fixedImage = sitk.ReadImage("fixedImage.nii")
movingImage = sitk.ReadImage("movingImage.nii")
# Compute the transformation from moving image to the fixed image

# Compute the transformation
elastixImageFilter = sitk.ElastixImageFilter()
elastixImageFilter.SetFixedImage(fixedImage)
elastixImageFilter.SetMovingImage(movingImage)
Expand All @@ -74,7 +75,7 @@ We can apply a transformation computed with SimpleElastix to a point set with Si
# to correctly infer the dimensionality of the point set.
transformixImageFilter = sitk.TransformixImageFilter()
transformixImageFilter.SetTransformParameterMap(elastixImageFilter.GetTransformParameterMap())
transformixImageFilter.SetFixedPointSet("fixedPointSet.pts")
transformixImageFilter.SetFixedPointSetFileName("fixedPointSet.pts")
transformixImageFilter.Execute()

.. warning::
Expand Down

0 comments on commit 33a6bbb

Please sign in to comment.