ah solved it.<br><br>For any that are interested:<br><br> TransformType::OutputVectorType translation_vector;<br>  translation_vector[0] = 0.0;<br>  translation_vector[1] = 0.0;<br>  translation_vector[2] = 0.0;<br>  transform-&gt;SetTranslation(translation_vector);<br>

<br>and then comment out <br>  initializer-&gt;InitializeTransform();<br><br>Still doesn&#39;t solve my problem though.<br><br>cheers, Michael<br><br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 3:39 PM, michiel mentink <span dir="ltr">&lt;<a href="mailto:michael.mentink@st-hughs.ox.ac.uk">michael.mentink@st-hughs.ox.ac.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Dear all,<br>
<br>
is there anyway of setting the initial iteration of the CentredTransformInitializer manually?<br>
<br>
The CentredTransformInitializer uses either GeometryOn() or momentsOn() that calculates<br>
the center of the image, but that produces an initial parameter that fails the registration even<br>
before it starts, because its errors:<br>
Description: itk::ERROR: MeanSquaresImageToImageMetric(0x9dfa3f0): All the points mapped to outside of the moving image<br>
<br>
Alternatively, can I just overwrite the parameters that are produced by the centredTransformInitializer? How?<br>
<br>
I&#39;m using the VersorRigid3DTransform.<br>
<br>
cheers, Michael<br>
<br>
</blockquote></div><br>