[Insight-users] Metric initialization for registration

Vincent Daanen vincent.daanen at imag.fr
Fri Sep 9 12:08:33 EDT 2005


>> Hi Luis,
>>
>> In fact, I executed metric->Initialize() at the beginnig to track 
>> errors ! I remove it and it's ok.
>>
>>  Thanks
>>
>> Vincent
>> Luis Ibanez a écrit :
>>
>>>
>>> Hi Vincent,
>>>
>>> The RegistrationMethod class should take care of initializing
>>> your Metric.
>>>
>>> This is done in line 207 of the file
>>>
>>>       Insight/Code/Algorithms/
>>>          itkImageRegistrationMethod.txx
>>>
>>>
>>> This belongs to the Initialize() method of the registration
>>> method itself, which in its turn is called from StartRegistration().
>>>
>>> I would guess that you problem lies somewhere else...
>>>
>>> Do you get an exception is you set your StartRegistration() method
>>> inside a try/catch block ?
>>>
>>> You will find many registraion examples in the ITK Software Guide
>>>
>>>
>>>       http://www.itk.org/ItkSoftwareGuide.pdf
>>>
>>> in the "Registration" chapter, and you will find all the source
>>> code of those examples in the directory:
>>>
>>>
>>>          Insight/Examples/Registration
>>>
>>>
>>>
>>>    Regards,
>>>
>>>
>>>        Luis
>>>
>>>
>>>
>>>
>>> -----------------------
>>> Vincent Daanen wrote:
>>>
>>>> Hi itk users,
>>>>
>>>> still trying to register datasets..
>>>>
>>>> So, I find that my metric seems to be uninitialized : running 
>>>> metric->Initialize()  (in a try/catch statement), it fails because 
>>>> the moving image, fixed image, fixed image region  and so on  are 
>>>> not set.
>>>> But they are set in the registration component.
>>>>
>>>> So should I set thm again in the metric component or is ok this way 
>>>> ( and so, metric->Initialize() fails !)
>>>>
>>>> Thanks
>>>>
>>>> Vincent
>>>> _______________________________________________
>>>> Insight-users mailing list
>>>> Insight-users at itk.org
>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>>
>>>
>>
>>
>


-- 
Vincent Daanen, PhD
Research Engineer, Post-Doctoral Position
Laboratoire TIMC/IMAG (Univ. Joseph Fourier - CNRS UMR 5525)
Equipe GMCAO
Institut d'Ingénierie de l'Information de Santé (IN3S)
Faculté de Médecine - 38706 La Tronche cedex - France
Tel: +33 (0)4 56 52 00 54 - Fax: +33 (0)4 56 52 00 55
Vincent.Daanen at imag.fr

"Les problèmes ne peuvent être résolus par
ceux dont l'horizon se limite aux réalités 
quotidiennes, mais par ceux qui rêvent de 
choses qui n'ont jamais existées et qui se 
disent : Pourquoi Pas ?"

J-F Kennedy, 1963.



More information about the Insight-users mailing list