Hi,<br><br>I&#39;m trying to do Registration slice to volume. Firstly and to make it as easy as possible, I extract a slice (fixedImage) of the volume 3d (movingImage). I want the registration say me the z of the slice into the volum 3D .
<br><br>Slice is casted to volume of only one slice to have two image with the same dimension. <br><br>typedef itk::Image&lt;unsigned char,2&gt; ImageType;<br>typedef itk::Image&lt;float,3&gt; FixedImageType;<br>typedef itk::CastImageFilter&lt; ImageType, FixedImageType &gt; CastFilterType2D;
<br>caster2D-&gt;SetInput( filter-&gt;GetOutput() ); //filter-&gt;GetOutput() is the slice 2D<br><br>Moreover, I&#39;ve tried it with a TranslationTransform, MeanSquaresImageToImageMetric and NearestNeighborInterpolateImageFunction but I have problems with metric.
<br><br>I think that this is the way to make it, but I am not sure if I have to make a different cast or if I have to choose another metric.<br><br>I&#39;ll thank if someone can help me, say me where can be the mistake or which metric and interpolator I have to use.
<br><br>Cheers<br><br>-- <br>Albert