[Insight-users] Exception in LandmarkInitializedMutualInformationRegistration
application
Luis Ibanez
luis.ibanez at kitware.com
Tue, 06 Apr 2004 16:52:13 -0400
Hi George,
You seem to be using two incompatible
versions of Insight and InsightApplications.
The Centered Versor transform API changed
recently in order to remove the center coordinates
from the set of parameters passed to the optimizer.
Please use Insight and InsightApplications from the
same release or CVS updated the same day.
Regards,
Luis
-------------------------
George Iordanescu wrote:
> Hello,
>
> I want to register two volumes (two 3D images) and I get the next
> messages when running the
> LandmarkInitializedMutualInformationRegistration application:
>
> >>>>>>>>>>>>>>>>>>>>>>>>AppMessages>>>>>>>>>>>>>>>>>>>>
> Registration begins.
> Registering using the rigid method...
> DEBUG: rigid registration INITIAL centered versor transform:
> [0, 0, 0, 24, 24, 14, 0, 0, 0]
> -------------------------------------------------
>
> Exception caught in RigidRegistrator:
>
> itk::ExceptionObject (0x842e598)
> Location: "Unknown"
> File:
> /home/giordanescu/itk/InsightToolkit-1.6.0/Code/Algorithms/itkImageRegistrationMethod.txx
> Line: 142
> Description: itk::ERROR: RigidRegistrator(0x84005b8): Size mismatch
> between initial parameter and transform
>
>
> -------------------------------------------------
> DEBUG: Rigid registration FINAL centered versor transform:
> [0, 0, 0, 0, 0, 0]
> DEBUG: Rigid registration FINAL affine transform:
> [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]
> <<<<<<<<<<<<<<<<<<<<<<<<<EndOfAppMessage<<<<<<<<<<<<<<<<<<<<<<<<
>
> The fixed image is 128*128*14, the moving image is 64*64*14. Apparently
> the application tries to pass an array of 9 values as an initial
> transformation, but the registrator wants only 6 (line 195 in
> ImageRegistrationApp.txx):
> registrator->SetInitialTransformParameters ( params );
>
>
> If I pass only the first 6 parameters, I get the next exception:
>
>
> >>>>>>>>>>>>>>>>>>>>>>>>AppMessages>>>>>>>>>>>>>>>>>>>>
> Registration begins.
> Registering using the rigid method...
> DEBUG: rigid registration INITIAL centered versor transform:
> [0, 0, 0, 24, 24, 14]
> -------------------------------------------------
> Exception caught in RigidRegistrator:
>
> itk::ExceptionObject (0x8420908)
> Location: "Unknown"
> File:
> /home/giordanescu/itk/InsightToolkit-1.6.0/Code/Algorithms/itkMattesMutualInformationImageToImageMetric.txx
> Line: 546LandmarkInitializedMutualInformationRegistration
> Description: itk::ERROR:
> MattesMutualInformationImageToImageMetric(0x8420320): Too many samples
> map outside moving image buffer: 2529 / 20000
>
>
>
> -------------------------------------------------
> DEBUG: Rigid registration FINAL centered versor transform:
> [0, 0, 0, 24, 24, 14]
> DEBUG: Rigid registration FINAL affine transform:
> [1, 0, 0, 0, 1, 0, 0, 0, 1, 24, 24, 14]
> <<<<<<<<<<<<<<<<<<<<<<<<<EndOfAppMessage<<<<<<<<<<<<
>
> Does anybody know how to fix this?
>
> Thank you,
>
> George
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>