[Insight-users] Exception in LandmarkInitializedMutualInformationRegistration application

George Iordanescu giordanescu at cmr.nunet.net
Wed, 31 Mar 2004 20:03:40 -0600


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