<br>I&#39;d like to do the following calculation, a translate:<br><br>A =<br>[ 1  0  0  2 ]<br>[ 0  1  0  3 ]<br>[ 0  0  1  4 ]<br><br>B = [ x y z 1 ]<br><br>FinalOrigin = A * B&#39; = [x+2 y+3 z+4 ]<br><br>For that, I have got the following code:<br>

<br><br><br><span style="font-family: times new roman,serif;">  typedef itk::Matrix&lt;double,3,4&gt; Matrix3by4Type;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  typedef itk::Vector&lt;double,4&gt; Vector4Type;</span><br style="font-family: times new roman,serif;">

<br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  Matrix3by4Type Translation;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  Vector4Type      FinalOrigin;</span><br>

<br><span style="font-family: times new roman,serif;">FinalOrigin[0] = origin[0]; FinalOrigin[1] = origin[1]; FinalOrigin[2] = origin[2]; FinalOrigin[3] = 1;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">FinalOrigin = Translation * FinalOrigin;</span><br style="font-family: times new roman,serif;">

<br><br><br>1)<br>Is it possible to multiply an itk::vector with an itk::matrix in ITK?<br><br>2)<br>There is no transpose available for the vnl_vector type, that is implemented in ITK. <br>Or is there?<br><br><br>I know that there are other methods in ITK to do translation, but for my understanding, I&#39;d like<br>

to figure this out.<br><br>cheers, <br><br>Michael<br><br><br><br>