Hi,<br><br>I'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<unsigned char,2> ImageType;<br>typedef itk::Image<float,3> FixedImageType;<br>typedef itk::CastImageFilter< ImageType, FixedImageType > CastFilterType2D;
<br>caster2D->SetInput( filter->GetOutput() ); //filter->GetOutput() is the slice 2D<br><br>Moreover, I'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'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